Shuffle cells by column in CSV files.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file csvshuf-1.0.1.tar.gz
.
File metadata
- Download URL: csvshuf-1.0.1.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5d1ed7d1d3fa35ee90391bfece57b5fa73a5d070e00da095290ccd376ddfc07 |
|
MD5 | fa911da28ebe816a0a3e88ba43a76ada |
|
BLAKE2b-256 | 356db40bca53051d7db880e27ca4e00e7cf8ab9ce138725fd27800a02d8fd80b |