Skip to content

Instantly share code, notes, and snippets.

import csv
def getPendingProfile(name):
myList = []
with open('Sheet1.csv', 'rb') as fo:
spamreader = csv.DictReader(fo)
for each in spamreader:
if each['Owner'] == name and each['Done?'] != 'x':
myList.append(each['Profile Page'])
return len(myList)