import requests import os from datetime import date import pandas as pd basecsv = "/Users/normrasmussen/Documents/Northpass/Scripts/G2_Unenroll/g2mca.csv" def mainFunc(basecsv): readData = pd.read_csv( basecsv, index_col=False, ) try: readData.loc[ readData['Course Name'].isin(['G2 Profile Anatomy'])] readData.loc[ readData['Course Name'].isin('Profile Performance & Lead Management')] readData.loc[ readData['Course Name'].isin('Review Tracking & Brand Building')] readData.loc[ readData['Course Name'].isin('The Review Rundown')] extractedList = readData.loc[ readData['Attempt Start'].isnull(), 'Learner Name'].tolist() print(extractedList) # newList = [*set(extractedList)] #findUuids(newList, readData) except: print("Not Working") #def findUuids(newList, readData): # try: # for name in newList: # uuidList = readData.loc[ # readData['Learner Name'] == name), # 'uuid'.tolist()] # print(uuidList) # except: # print("An error occured") if __name__ == "__main__": mainFunc(basecsv)