Skip to main content

Shift Nth Row N Steps

CI Status Documentation Status

Test coverage percentage uv Ruff prek

PyPI Version Supported Python versions License


Documentation: https://shift-nth-row-n-steps.readthedocs.io

Source Code: https://github.com/34j/shift-nth-row-n-steps


Shift Nth row N steps in NumPy / PyTorch / TensorFlow / JAX

Installation

Install this via pip (or your favourite package manager):

pip install shift-nth-row-n-steps

Usage

from shift_nth_row_n_steps import shift_nth_row_n_steps

a = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
shifted = shift_nth_row_n_steps(a)
print(shifted)
[[1 2 3]
 [0 4 5]
 [0 0 7]]

shift_nth_row_n_steps is array API compatible, which means it works with NumPy, PyTorch, JAX, and other libraries that implement the array API standard.

Benchmark

Benchmark

Algorithm

Algorithm

Metadata

Release files for shift-nth-row-n-steps 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shift-nth-row-n-steps 1.0.1
File Size Uploaded Provenance Actions
shift_nth_row_n_steps-1.0.1.tar.gz 11.0 kB With provenance Details for shift_nth_row_n_steps-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shift-nth-row-n-steps 1.0.1
File Interpreter ABI Platform Actions
shift_nth_row_n_steps-1.0.1-py3-none-any.whl Python 3 none any Details for shift_nth_row_n_steps-1.0.1-py3-none-any.whl

Total release size: 20.2 kB

Release files / shift_nth_row_n_steps-1.0.1.tar.gz

Download URL shift_nth_row_n_steps-1.0.1.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d9c5cabb68149505e557093eed9c8046882c9535db3d968726887112fcafae95
BLAKE2b-256 checksum
How to use checksums
b6243ee326d5d94de0ef06f93ab1328697bf2a5d2c485c56c23ac60edc2dd23d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / shift_nth_row_n_steps-1.0.1-py3-none-any.whl

Download URL shift_nth_row_n_steps-1.0.1-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eac3d21592d22a747a536e3da9ac00c7afc36842f9e16239b88ade4c70cfce3e
BLAKE2b-256 checksum
How to use checksums
921e68d8b364839035de2b1a015fdb53de0c93285b2e309e06f3cd19442687fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for shift-nth-row-n-steps 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for shift_nth_row_n_steps-1.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page