Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -226,6 +226,9 @@ with tab2:
|
|
226 |
player_var = working_roo.loc[working_roo['Player'] == player_check]
|
227 |
player_var = player_var.reset_index()
|
228 |
|
|
|
|
|
|
|
229 |
flex_file = working_roo[['Player', 'Position', 'Salary', 'Median', 'Minutes_Proj']]
|
230 |
flex_file['Floor'] = (flex_file['Median'] * .25) + (flex_file['Minutes_Proj'] * .25)
|
231 |
flex_file['Ceiling'] = flex_file['Median'] + 10 + (flex_file['Minutes_Proj'] * .25)
|
|
|
226 |
player_var = working_roo.loc[working_roo['Player'] == player_check]
|
227 |
player_var = player_var.reset_index()
|
228 |
|
229 |
+
working_roo = working_roo.loc[(working_roo['Salary'] >= player_var['Salary'][0] - 300) & (working_roo['Salary'] <= player_var['Salary'][0] + 300)]
|
230 |
+
working_roo = working_roo.loc[(working_roo['Median'] >= player_var['Median'][0] - 3) & (working_roo['Median'] <= player_var['Median'][0] + 3)]
|
231 |
+
|
232 |
flex_file = working_roo[['Player', 'Position', 'Salary', 'Median', 'Minutes_Proj']]
|
233 |
flex_file['Floor'] = (flex_file['Median'] * .25) + (flex_file['Minutes_Proj'] * .25)
|
234 |
flex_file['Ceiling'] = flex_file['Median'] + 10 + (flex_file['Minutes_Proj'] * .25)
|