Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
bb617b3
1
Parent(s):
9402543
Remove index setting for Line Marketshares display to improve data presentation
Browse files- Commented out the line that sets the index for Line Marketshares dataframe
- Maintains full column visibility in the dataframe display
app.py
CHANGED
@@ -120,7 +120,7 @@ with col2:
|
|
120 |
elif split_var1 == 'Line Marketshares':
|
121 |
display_table = overall_ms
|
122 |
display_parsed = display_table[display_table['Line'].str.contains('|'.join(team_split))]
|
123 |
-
display_parsed = display_parsed.set_index('Line')
|
124 |
st.dataframe(display_parsed.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(percentages_format, precision=2), height=500, use_container_width = True)
|
125 |
|
126 |
if split_var1 == 'Line Marketshares':
|
|
|
120 |
elif split_var1 == 'Line Marketshares':
|
121 |
display_table = overall_ms
|
122 |
display_parsed = display_table[display_table['Line'].str.contains('|'.join(team_split))]
|
123 |
+
# display_parsed = display_parsed.set_index('Line')
|
124 |
st.dataframe(display_parsed.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(percentages_format, precision=2), height=500, use_container_width = True)
|
125 |
|
126 |
if split_var1 == 'Line Marketshares':
|