Skip to content

domoritz/random-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

random-csv

Generate a random CSV file with a schema.

Features

  • Provide a schema with int, float or str
  • Seeded random to have the same result

Usage

Get help with -h

Example usage:

python generate_csv.py 10 --delimiter ',' int int float str

generates

639426799,25010755,0.27502931836911926,pYU9fDcpIbnS
544941481,220440622,0.5892656838759087,3a3Wxk*xgg6P
807128274,729731787,0.5362280914547007, AM5Q7NWdptf
232790886,101001429,0.2779736031100921,Rzzos#SQlYlA
989523351,639999760,0.5569497437746462,V61pcvso&8vT
395631901,914547590,0.4588518525873988,srMsO9Bp	Jgd
109649130,627446042,0.7920793643629641,DeA	K 7aXVLs
640961799,111552173,0.434765250669105,"F&8sIm""8uSQk"
762510800,539379030,0.7786264786305582,Kawb#85vd8&f
485990463,69212518,0.7606021652572316,0iGLs8DoLYnv

About

Generate a random CSV file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages