Skip to main content

csvshuf

Shuffle cells by column in CSV files.

Usage

Shuffle the first column of each row of foobar.csv

csvshuf -c1 foobar.csv

Shuffle the third column of each row of foobar.csv using Sattolo’s algorithm

csvshuf -c3 -s foobar.csv

Shuffle all columns of foobar.csv

csvshuf foobar.csv

Shuffle all the columns but the first of foobar.csv

csvshuf -C1 foobar.csv

Shuffle the first and third columns of the first ten lines of foobar.csv

head -10 foobar.csv | csvshuf -c 1,3

Shuffle the first and third columns of the pipe-delimited foobar.csv

csvshuf -c1,3 -d “|” foobar.csv

Shuffle the first and third columns of the tab-delimited foobar.csv

csvshuf -c 1,3 -t foobar.csv

Shuffle the first three columns of the pipe-delimited foobar.csv; output will be comma-delimited

csvshuf -c 1,2,3 -d “|” -o , foobar.csv

Shuffle the first three columns of the comma-delimited foobar.csv; output will be pipe-delimited

csvshuf -c 1,2,3 -o “|” foobar.csv

Shuffle the first two columns of the comma-delimited, pipe-quoted foobar.csv

csvshuf -c 1,2 -d “,” -q “|” foobar.csv

Installation

pip install csvshuf

Author

Pere Orga pere@orga.cat, 2016.

Originally forked from csvcut (https://gist.github.com/bycoffe/187278).

Metadata

Release files for csvshuf 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 csvshuf 1.0.1
File Size Uploaded Provenance Actions
csvshuf-1.0.1.tar.gz 16.3 kB Without provenance Details for csvshuf-1.0.1.tar.gz

Release files / csvshuf-1.0.1.tar.gz

Download URL csvshuf-1.0.1.tar.gz
Size 16.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f5d1ed7d1d3fa35ee90391bfece57b5fa73a5d070e00da095290ccd376ddfc07
BLAKE2b-256 checksum
How to use checksums
356db40bca53051d7db880e27ca4e00e7cf8ab9ce138725fd27800a02d8fd80b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for csvshuf 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

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