Skip to content

Commit 91a5082

Browse files
committed
Update stringComparisonFromCSV.py
1 parent 01d0398 commit 91a5082

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stringComparisonFromCSV.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@
2323
reader = csv.DictReader(csvfile)
2424
for row in reader:
2525
nameList.append(str(row['prefLabel']))
26-
26+
counter = len(nameList)
2727
f=csv.writer(open(fileName[:fileName.index('.')]+'NearMatches.csv','wb'))
2828
f.writerow(['percentage']+['name1']+['name2'])
2929
completeNearMatches = []
3030
for name in nameList:
31+
counter -= 1
32+
print 'Rows remaining: ', counter
3133
for name2 in nameList:
3234
if name != name2:
3335
ratio = fuzz.ratio(name, name2)

0 commit comments

Comments
 (0)