2022-11-21 16:08:13 -05:00
|
|
|
from collections import Counter
|
2022-11-08 14:47:53 -05:00
|
|
|
import pandas as pd
|
|
|
|
|
|
2022-11-22 17:13:39 -05:00
|
|
|
basecsv = "/Users/normrasmussen/Documents/Northpass/Scripts/G2_Unenroll/skuid_05lp.csv"
|
2022-11-08 14:47:53 -05:00
|
|
|
|
2022-11-22 17:13:39 -05:00
|
|
|
def mainFunc(basecsv):
|
2022-11-08 14:47:53 -05:00
|
|
|
readData = pd.read_csv(
|
|
|
|
|
basecsv,
|
|
|
|
|
index_col=False,
|
|
|
|
|
)
|
2022-11-22 17:13:39 -05:00
|
|
|
parsedData = readData.drop_duplicates(subset='Course_Name', keep="first")
|
|
|
|
|
if parsedData.loc[readData['Course Name'].isin([
|
|
|
|
|
'Get Started with Models - Level 1',
|
|
|
|
|
'Configure Model Fields - Level 1',
|
|
|
|
|
'Configure Model Conditions - Level 1',
|
|
|
|
|
'Configure Model Actions - Level 1',
|
|
|
|
|
'Manage Models - Level 1',
|
|
|
|
|
'Intro to UI Only Fields - Level 1'])]:
|
|
|
|
|
extractedList = readData.loc[readData['Email'].tolist()
|
|
|
|
|
fourOccs = Counter(extractedList)
|
|
|
|
|
finalNames = []
|
|
|
|
|
for name, occurences in fourOccs.items():
|
|
|
|
|
if occurences == 6:
|
|
|
|
|
finalNames.append(name)
|
2022-11-21 16:08:13 -05:00
|
|
|
|
2022-11-08 14:47:53 -05:00
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2022-11-22 17:13:39 -05:00
|
|
|
mainFunc(basecsv)
|