James McCool commited on
Commit
31420bc
·
1 Parent(s): a640c04

removed raw_display

Browse files
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -65,37 +65,37 @@ def init_load():
65
  worksheet = sh.worksheet('Player_Level_SD_ROO')
66
  load_display = pd.DataFrame(worksheet.get_all_records())
67
  load_display.replace('', np.nan, inplace=True)
68
- raw_display.rename(columns={"Name": "Player", "Fantasy": "Median"}, inplace = True)
69
- raw_display = raw_display[['Player', 'Salary', 'Position', 'Team', 'Opp', 'Minutes', 'Median', 'Own']]
70
- roo_raw = raw_display.loc[raw_display['Median'] > 0]
71
 
72
  worksheet = sh.worksheet('DK_SD_Build')
73
  load_display = pd.DataFrame(worksheet.get_all_records())
74
  load_display.replace('', np.nan, inplace=True)
75
- raw_display.rename(columns={"Name": "Player", "Fantasy": "Median"}, inplace = True)
76
- raw_display = raw_display[['Player', 'Salary', 'Position', 'Team', 'Opp', 'Minutes', 'Median', 'Own']]
77
- dk_roo_raw = raw_display.loc[raw_display['Median'] > 0]
78
 
79
  worksheet = sh.worksheet('FD_SD_Build')
80
  load_display = pd.DataFrame(worksheet.get_all_records())
81
  load_display.replace('', np.nan, inplace=True)
82
- raw_display.rename(columns={"Name": "Player", "Fantasy": "Median"}, inplace = True)
83
- raw_display = raw_display[['Player', 'Salary', 'Position', 'Team', 'Opp', 'Minutes', 'Median', 'Own']]
84
- fd_roo_raw = raw_display.loc[raw_display['Median'] > 0]
85
 
86
  worksheet = sh.worksheet('DK_SD2_Build')
87
  load_display = pd.DataFrame(worksheet.get_all_records())
88
  load_display.replace('', np.nan, inplace=True)
89
- raw_display.rename(columns={"Name": "Player", "Fantasy": "Median"}, inplace = True)
90
- raw_display = raw_display[['Player', 'Salary', 'Position', 'Team', 'Opp', 'Minutes', 'Median', 'Own']]
91
- dk_roo_raw_2 = raw_display.loc[raw_display['Median'] > 0]
92
 
93
  worksheet = sh.worksheet('FD_SD2_Build')
94
  load_display = pd.DataFrame(worksheet.get_all_records())
95
  load_display.replace('', np.nan, inplace=True)
96
- raw_display.rename(columns={"Name": "Player", "Fantasy": "Median"}, inplace = True)
97
- raw_display = raw_display[['Player', 'Salary', 'Position', 'Team', 'Opp', 'Median', 'Own', 'Minutes']]
98
- fd_roo_raw_2 = raw_display.loc[raw_display['Median'] > 0]
99
 
100
  timestamp = roo_raw['timestamp'].values[0]
101
 
 
65
  worksheet = sh.worksheet('Player_Level_SD_ROO')
66
  load_display = pd.DataFrame(worksheet.get_all_records())
67
  load_display.replace('', np.nan, inplace=True)
68
+ load_display.rename(columns={"Name": "Player", "Fantasy": "Median"}, inplace = True)
69
+ load_display = load_display[['Player', 'Salary', 'Position', 'Team', 'Opp', 'Minutes', 'Median', 'Own']]
70
+ roo_raw = load_display.loc[load_display['Median'] > 0]
71
 
72
  worksheet = sh.worksheet('DK_SD_Build')
73
  load_display = pd.DataFrame(worksheet.get_all_records())
74
  load_display.replace('', np.nan, inplace=True)
75
+ load_display.rename(columns={"Name": "Player", "Fantasy": "Median"}, inplace = True)
76
+ load_display = load_display[['Player', 'Salary', 'Position', 'Team', 'Opp', 'Minutes', 'Median', 'Own']]
77
+ dk_roo_raw = load_display.loc[load_display['Median'] > 0]
78
 
79
  worksheet = sh.worksheet('FD_SD_Build')
80
  load_display = pd.DataFrame(worksheet.get_all_records())
81
  load_display.replace('', np.nan, inplace=True)
82
+ load_display.rename(columns={"Name": "Player", "Fantasy": "Median"}, inplace = True)
83
+ load_display = load_display[['Player', 'Salary', 'Position', 'Team', 'Opp', 'Minutes', 'Median', 'Own']]
84
+ fd_roo_raw = load_display.loc[load_display['Median'] > 0]
85
 
86
  worksheet = sh.worksheet('DK_SD2_Build')
87
  load_display = pd.DataFrame(worksheet.get_all_records())
88
  load_display.replace('', np.nan, inplace=True)
89
+ load_display.rename(columns={"Name": "Player", "Fantasy": "Median"}, inplace = True)
90
+ load_display = load_display[['Player', 'Salary', 'Position', 'Team', 'Opp', 'Minutes', 'Median', 'Own']]
91
+ dk_roo_raw_2 = load_display.loc[load_display['Median'] > 0]
92
 
93
  worksheet = sh.worksheet('FD_SD2_Build')
94
  load_display = pd.DataFrame(worksheet.get_all_records())
95
  load_display.replace('', np.nan, inplace=True)
96
+ load_display.rename(columns={"Name": "Player", "Fantasy": "Median"}, inplace = True)
97
+ load_display = load_display[['Player', 'Salary', 'Position', 'Team', 'Opp', 'Median', 'Own', 'Minutes']]
98
+ fd_roo_raw_2 = load_display.loc[load_display['Median'] > 0]
99
 
100
  timestamp = roo_raw['timestamp'].values[0]
101