Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import csv
- symbols = set([])
- new_file = open("new_csv.csv",'w')
- x = open("GSE67980_readCounts_withsymbol.csv").read().splitlines()
- for line in x:
- symbol = line.split(",")[1]
- if symbol not in symbols:
- new_file.write(line+"\n")
- symbols.add(symbol)
- x.close()
- new_file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement