Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
917497d
1
Parent(s):
c4089de
removed instances of opponent
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def init_stat_load():
|
|
60 |
raw_display = pd.DataFrame(worksheet.get_all_records())
|
61 |
raw_display = raw_display.rename(columns={"Minutes Proj": "Minutes"})
|
62 |
|
63 |
-
raw_display = raw_display[['Player', 'Salary', 'Position', 'Team', '
|
64 |
raw_display.replace("", 'Welp', inplace=True)
|
65 |
raw_display = raw_display.loc[raw_display['Player'] != 'Welp']
|
66 |
raw_display = raw_display.loc[raw_display['Median'] > 0]
|
@@ -301,7 +301,7 @@ with tab1:
|
|
301 |
final_Proj['ValX'] = np.where(final_Proj['ValX'] > 100, 100, final_Proj['ValX'])
|
302 |
final_Proj['ValX'] = np.where(final_Proj['ValX'] < 0, 0, final_Proj['ValX'])
|
303 |
|
304 |
-
final_Proj = final_Proj[['Player', 'Pivot_source', 'Position', 'Team', '
|
305 |
|
306 |
final_Proj = final_Proj.sort_values(by='Top_finish', ascending=False)
|
307 |
final_proj_list.append(final_Proj)
|
@@ -329,7 +329,7 @@ with tab1:
|
|
329 |
st.write("Run some pivots my dude/dudette")
|
330 |
|
331 |
with tab2:
|
332 |
-
st.info("The Projections file can have any columns in any order, but must contain columns explicitly named: 'Player', 'Salary', 'Position', 'Team', '
|
333 |
col1, col2 = st.columns([1, 5])
|
334 |
|
335 |
with col1:
|
|
|
60 |
raw_display = pd.DataFrame(worksheet.get_all_records())
|
61 |
raw_display = raw_display.rename(columns={"Minutes Proj": "Minutes"})
|
62 |
|
63 |
+
raw_display = raw_display[['Player', 'Salary', 'Position', 'Team', 'Minutes', 'Median', 'Own']]
|
64 |
raw_display.replace("", 'Welp', inplace=True)
|
65 |
raw_display = raw_display.loc[raw_display['Player'] != 'Welp']
|
66 |
raw_display = raw_display.loc[raw_display['Median'] > 0]
|
|
|
301 |
final_Proj['ValX'] = np.where(final_Proj['ValX'] > 100, 100, final_Proj['ValX'])
|
302 |
final_Proj['ValX'] = np.where(final_Proj['ValX'] < 0, 0, final_Proj['ValX'])
|
303 |
|
304 |
+
final_Proj = final_Proj[['Player', 'Pivot_source', 'Position', 'Team', 'Salary', 'Floor', 'Median', 'Ceiling', 'Top_finish', 'Top_5_finish', 'Top_10_finish', '20+%', '2x%', '3x%', '4x%', 'Own', 'LevX']]
|
305 |
|
306 |
final_Proj = final_Proj.sort_values(by='Top_finish', ascending=False)
|
307 |
final_proj_list.append(final_Proj)
|
|
|
329 |
st.write("Run some pivots my dude/dudette")
|
330 |
|
331 |
with tab2:
|
332 |
+
st.info("The Projections file can have any columns in any order, but must contain columns explicitly named: 'Player', 'Salary', 'Position', 'Team', 'Minutes', 'Median', 'Own'.")
|
333 |
col1, col2 = st.columns([1, 5])
|
334 |
|
335 |
with col1:
|