Spaces:
Running
Running
James McCool
commited on
Commit
·
6ba47fc
1
Parent(s):
3c18bf4
Adjusted flex file to read from working_too_temp
Browse files
app.py
CHANGED
@@ -238,10 +238,8 @@ with tab1:
|
|
238 |
|
239 |
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)]
|
240 |
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)]
|
241 |
-
|
242 |
-
st.write(working_roo_temp)
|
243 |
|
244 |
-
flex_file =
|
245 |
flex_file['Floor'] = (flex_file['Median'] * .25) + (flex_file['Minutes'] * .25)
|
246 |
flex_file['Ceiling'] = flex_file['Median'] + 10 + (flex_file['Minutes'] * .25)
|
247 |
flex_file['STD'] = (flex_file['Median']/4)
|
|
|
238 |
|
239 |
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)]
|
240 |
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)]
|
|
|
|
|
241 |
|
242 |
+
flex_file = working_roo_temp[['Player', 'Position', 'Salary', 'Median', 'Minutes']]
|
243 |
flex_file['Floor'] = (flex_file['Median'] * .25) + (flex_file['Minutes'] * .25)
|
244 |
flex_file['Ceiling'] = flex_file['Median'] + 10 + (flex_file['Minutes'] * .25)
|
245 |
flex_file['STD'] = (flex_file['Median']/4)
|