Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -192,10 +192,10 @@ with tab2:
|
|
192 |
working_roo = working_roo.loc[(working_roo['Salary'] >= player_var['Salary'][0] - Salary_var) & (working_roo['Salary'] <= player_var['Salary'][0] + Salary_var)]
|
193 |
working_roo = working_roo.loc[(working_roo['Median'] >= player_var['Median'][0] - Median_var) & (working_roo['Median'] <= player_var['Median'][0] + Median_var)]
|
194 |
|
195 |
-
flex_file = working_roo[['Player', 'Position', 'Salary', 'Median'
|
196 |
-
flex_file['Floor'] = np.where(flex_file['Position'] == 'QB',(flex_file['Median']
|
197 |
-
flex_file['Ceiling'] = np.where(flex_file['Position'] == 'QB',(flex_file['Median']
|
198 |
-
flex_file['STD'] =
|
199 |
flex_file = flex_file[['Player', 'Position', 'Salary', 'Floor', 'Median', 'Ceiling', 'STD']]
|
200 |
hold_file = flex_file
|
201 |
overall_file = flex_file
|
|
|
192 |
working_roo = working_roo.loc[(working_roo['Salary'] >= player_var['Salary'][0] - Salary_var) & (working_roo['Salary'] <= player_var['Salary'][0] + Salary_var)]
|
193 |
working_roo = working_roo.loc[(working_roo['Median'] >= player_var['Median'][0] - Median_var) & (working_roo['Median'] <= player_var['Median'][0] + Median_var)]
|
194 |
|
195 |
+
flex_file = working_roo[['Player', 'Position', 'Salary', 'Median']]
|
196 |
+
flex_file['Floor'] = np.where(flex_file['Position'] == 'QB', (flex_file['Median'] * .33), flex_file['Median'] * .20)
|
197 |
+
flex_file['Ceiling'] = np.where(flex_file['Position'] == 'QB', (flex_file['Median'] * 1.5), flex_file['Median'] * 2)
|
198 |
+
flex_file['STD'] = flex_file['Median'] / 4
|
199 |
flex_file = flex_file[['Player', 'Position', 'Salary', 'Floor', 'Median', 'Ceiling', 'STD']]
|
200 |
hold_file = flex_file
|
201 |
overall_file = flex_file
|