Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Takes a CSV file and gets a random sample from it based off input
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


Takes a CSV, and random sample #, then spits out a CSV with the sample, and the rest in another

Here is the syntax:

>> python sample_num /path/to/input.csv /path/to/sample_out.csv /path/to/rest_out.csv

	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
Something went wrong with that request. Please try again.