public
Created

make test dataset

  • Download Gist
make_data.py
Python
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/usr/bin/env python
 
import os
 
begin = 1
end = 3000000
inc = 3000000
for j in xrange(3):
with open('%s.txt' % (j + 1), 'w') as wf:
for i in xrange(begin, end + 1):
print >> wf, i
 
begin += inc
end += inc
 
 
os.system("tar czvf all.tgz 1.txt 2.txt 3.txt")

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.