Last active
February 26, 2016 00:28
-
-
Save ncole458/883a03092c4f613ed329 to your computer and use it in GitHub Desktop.
This file contains 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
import csv | |
reader=csv.reader(open('UserstoImport.csv', 'r'), delimiter=',') | |
writer=csv.writer(open('UserstoImport_withoutduplicates.csv', 'w'), delimiter=',') | |
entries = set() | |
for row in reader: | |
key = (row[1], row[2]) # CSV rows by num | |
if key not in entries: | |
writer.writerow(row) | |
entries.add(key) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
awesome, thanks!