Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = open("results.csv")
- new_file_first = open("output_fisrt.csv", 'w')
- new_file_second = open("output_second.csv", 'w')
- for line in file:
- slpit = line.split(";")
- for entry in slpit[0:3]:
- new_file_first.write(entry+";")
- new_file_first.write("\n")
- new_file_second.write(slpit[3])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement