Spaces:
Sleeping
Sleeping
James McCool commited on
Commit ·
926f186
1
Parent(s): 2c4b1a7
Enhance dataframe display in Streamlit app by enabling container width for player rankings and position breakdowns, improving overall layout and usability.
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -450,14 +450,14 @@ def main():
|
|
| 450 |
|
| 451 |
# Display results
|
| 452 |
st.header("Player Rankings")
|
| 453 |
-
st.dataframe(final_df)
|
| 454 |
|
| 455 |
# Position breakdown
|
| 456 |
st.header("Position Breakdown")
|
| 457 |
for pos in ['QB', 'RB', 'WR', 'TE']:
|
| 458 |
pos_df = final_df[final_df['Pos'] == pos].head(20)
|
| 459 |
st.subheader(f"Top {pos}s")
|
| 460 |
-
st.dataframe(pos_df
|
| 461 |
|
| 462 |
if __name__ == "__main__":
|
| 463 |
main()
|
|
|
|
| 450 |
|
| 451 |
# Display results
|
| 452 |
st.header("Player Rankings")
|
| 453 |
+
st.dataframe(final_df, use_container_width=True)
|
| 454 |
|
| 455 |
# Position breakdown
|
| 456 |
st.header("Position Breakdown")
|
| 457 |
for pos in ['QB', 'RB', 'WR', 'TE']:
|
| 458 |
pos_df = final_df[final_df['Pos'] == pos].head(20)
|
| 459 |
st.subheader(f"Top {pos}s")
|
| 460 |
+
st.dataframe(pos_df, use_container_width=True)
|
| 461 |
|
| 462 |
if __name__ == "__main__":
|
| 463 |
main()
|