-
Notifications
You must be signed in to change notification settings - Fork 0
wesleyzhao/csv_random_sampler
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Takes a CSV, and random sample #, then spits out a CSV with the sample, and the rest in another Here is the syntax: >> python sampler.py sample_num /path/to/input.csv /path/to/sample_out.csv /path/to/rest_out.csv Where: sample_num - the size of the sample you wish to get /path/to/input.csv - the path to the CSV file you are trying to take samples from /path/to/sample_out.csv - the path to the CSV file you wish to write the rows to be included in the sample /path/to/rest_out.csv - the path to the CSV file which the non-sample rows will be written to
About
Takes a CSV file and gets a random sample from it based off input
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published