Generate a random CSV file with a schema.
- Provide a schema with
int
,float
orstr
- Seeded random to have the same result
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