DouglasElliman & other scripts
This commit is contained in:
51
Scripts/G2_Unenroll/fix_unenroll.py
Normal file
51
Scripts/G2_Unenroll/fix_unenroll.py
Normal file
@ -0,0 +1,51 @@
|
||||
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'])]
|
||||
try:
|
||||
readData.loc[
|
||||
readData['Course Name'].isin('Profile Performance & Lead Management')]
|
||||
except:
|
||||
print("Profile Course Failed")
|
||||
try:
|
||||
readData.loc[
|
||||
readData['Course Name'].isin('Review Tracking & Brand Building')]
|
||||
except:
|
||||
print("Review Course Failed")
|
||||
try:
|
||||
readData.loc[
|
||||
readData['Course Name'].isin('The Review Rundown')]
|
||||
extractedList = readData.loc[
|
||||
readData['Attempt Start'].isnull(),
|
||||
'Learner Name'].tolist()
|
||||
print(extractedList)
|
||||
except:
|
||||
print("Review Rundown failed")
|
||||
# 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)
|
||||
1957
Scripts/G2_Unenroll/g2mca.csv
Normal file
1957
Scripts/G2_Unenroll/g2mca.csv
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user