Created
August 10, 2012 17:32
-
-
Save tdhopper/3315974 to your computer and use it in GitHub Desktop.
Split bid data into files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f = open('ydata-ysm-advertiser-bids-v1_0.txt', 'r') | |
for x in f.readlines(): | |
with open("split/" + x.split()[0].replace("/","") + ".csv", "a+") as out: | |
out.write(", ".join(x.split())) | |
out.write("\n") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment