Spaces:
Sleeping
Sleeping
James McCool commited on
Commit ·
2c4b1a7
1
Parent(s): cbdeeca
Update player rankings display in Streamlit app to show full dataframe and enhance position breakdowns with top 50 players for each position.
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)
|
| 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.head(50))
|
| 461 |
|
| 462 |
if __name__ == "__main__":
|
| 463 |
main()
|