Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
6983062
1
Parent(s):
9e7c263
reverted change from working_roo_temp to working_roo
Browse files
app.py
CHANGED
@@ -251,12 +251,12 @@ with tab1:
|
|
251 |
players_pos = pos_dict[players]
|
252 |
player_var = working_roo.loc[working_roo['Player'] == players]
|
253 |
player_var = player_var.reset_index()
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
|
259 |
-
flex_file =
|
260 |
flex_file['Floor_raw'] = flex_file['Median'] * .25
|
261 |
flex_file['Ceiling_raw'] = flex_file['Median'] * 1.75
|
262 |
flex_file['Floor'] = np.where(flex_file['Position'] == 'QB', (flex_file['Median'] * .33), flex_file['Floor_raw'])
|
|
|
251 |
players_pos = pos_dict[players]
|
252 |
player_var = working_roo.loc[working_roo['Player'] == players]
|
253 |
player_var = player_var.reset_index()
|
254 |
+
working_roo_temp = working_roo[working_roo['Position'] == players_pos]
|
255 |
+
working_roo_temp = working_roo_temp[working_roo_temp['Team'].isin(team_var1)]
|
256 |
+
working_roo_temp = working_roo_temp.loc[(working_roo_temp['Salary'] >= player_var['Salary'][0] - Salary_var) & (working_roo_temp['Salary'] <= player_var['Salary'][0] + Salary_var)]
|
257 |
+
working_roo_temp = working_roo_temp.loc[(working_roo_temp['Median'] >= player_var['Median'][0] - Median_var) & (working_roo_temp['Median'] <= player_var['Median'][0] + Median_var)]
|
258 |
|
259 |
+
flex_file = working_roo_temp[['Player', 'Position', 'Salary', 'Median']]
|
260 |
flex_file['Floor_raw'] = flex_file['Median'] * .25
|
261 |
flex_file['Ceiling_raw'] = flex_file['Median'] * 1.75
|
262 |
flex_file['Floor'] = np.where(flex_file['Position'] == 'QB', (flex_file['Median'] * .33), flex_file['Floor_raw'])
|