Spaces:
Running
Running
James McCool
commited on
Commit
·
822a6cd
1
Parent(s):
5b00850
Improve simple view display with font size adjustment
Browse files
app.py
CHANGED
@@ -352,7 +352,7 @@ with tab1:
|
|
352 |
display_proj = display_proj[['Player', 'Minutes Proj', 'Position', 'Team', 'Opp', 'Salary', 'Floor', 'Median', 'Ceiling', 'Top_finish', 'Top_5_finish', 'Top_10_finish', '20+%', '4x%', '5x%', '6x%', 'GPP%',
|
353 |
'Own', 'Small_Own', 'Large_Own', 'Cash_Own', 'CPT_Own', 'LevX', 'ValX']]
|
354 |
elif view_var2 == 'Simple':
|
355 |
-
display_proj = display_proj[['Player', 'Position', 'Median', 'GPP%', 'Own']]
|
356 |
export_data = display_proj.copy()
|
357 |
|
358 |
|
@@ -366,7 +366,7 @@ with tab1:
|
|
366 |
st.session_state.display_proj = st.session_state.display_proj
|
367 |
elif pos_var2 != 'All':
|
368 |
st.session_state.display_proj = st.session_state.display_proj[st.session_state.display_proj['Position'].str.contains(pos_var2)]
|
369 |
-
st.dataframe(st.session_state.display_proj.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(roo_format, precision=2), height=1000, use_container_width = True)
|
370 |
|
371 |
with display_dl_container_1:
|
372 |
display_dl_container = st.empty()
|
|
|
352 |
display_proj = display_proj[['Player', 'Minutes Proj', 'Position', 'Team', 'Opp', 'Salary', 'Floor', 'Median', 'Ceiling', 'Top_finish', 'Top_5_finish', 'Top_10_finish', '20+%', '4x%', '5x%', '6x%', 'GPP%',
|
353 |
'Own', 'Small_Own', 'Large_Own', 'Cash_Own', 'CPT_Own', 'LevX', 'ValX']]
|
354 |
elif view_var2 == 'Simple':
|
355 |
+
display_proj = display_proj[['Player', 'Position', 'Salary', 'Median', 'GPP%', 'Own']]
|
356 |
export_data = display_proj.copy()
|
357 |
|
358 |
|
|
|
366 |
st.session_state.display_proj = st.session_state.display_proj
|
367 |
elif pos_var2 != 'All':
|
368 |
st.session_state.display_proj = st.session_state.display_proj[st.session_state.display_proj['Position'].str.contains(pos_var2)]
|
369 |
+
st.dataframe(st.session_state.display_proj.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(roo_format, precision=2).set_properties(**{'font-size': '10pt'}), height=1000, use_container_width = True)
|
370 |
|
371 |
with display_dl_container_1:
|
372 |
display_dl_container = st.empty()
|