Added some SPS Updates
This commit is contained in:
@ -9,19 +9,22 @@ def mainFunc(basecsv):
|
||||
index_col=False,
|
||||
)
|
||||
readData.drop_duplicates(subset='Course Name', keep="first")
|
||||
if readData.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)
|
||||
emailGroups = readData.groupby("Email")["Course Name"].nunique()
|
||||
print(emailGroups)
|
||||
emailGroups = emailGroups.to_csv('/Users/normrasmussen/Documents/Northpass/Scripts/Skuid_LPs/outtest.csv')
|
||||
#if readData.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)
|
||||
|
||||
if __name__ == "__main__":
|
||||
mainFunc(basecsv)
|
||||
|
||||
Reference in New Issue
Block a user