Spaces:
Sleeping
Sleeping
Jon Solow
commited on
Commit
·
2988866
1
Parent(s):
e8bc890
Add height arg for dataframes
Browse files
src/pages/51_League_Results_Summary.py
CHANGED
@@ -44,10 +44,16 @@ def get_page():
|
|
44 |
columns="week", index="team_name", values="half_wins", aggfunc="sum", margins=True, margins_name="Total"
|
45 |
)
|
46 |
luck_pivot.columns = [str(int(x)) if isinstance(x, float) else x for x in luck_pivot.columns]
|
47 |
-
st.dataframe(
|
|
|
|
|
|
|
48 |
|
49 |
st.header("Luck Summary")
|
50 |
-
st.dataframe(
|
|
|
|
|
|
|
51 |
|
52 |
if st.checkbox("View/Export Full Scores"):
|
53 |
st.dataframe(df_weekly_results)
|
|
|
44 |
columns="week", index="team_name", values="half_wins", aggfunc="sum", margins=True, margins_name="Total"
|
45 |
)
|
46 |
luck_pivot.columns = [str(int(x)) if isinstance(x, float) else x for x in luck_pivot.columns]
|
47 |
+
st.dataframe(
|
48 |
+
luck_pivot,
|
49 |
+
height=35 * (len(luck_pivot) + 1) + 3,
|
50 |
+
)
|
51 |
|
52 |
st.header("Luck Summary")
|
53 |
+
st.dataframe(
|
54 |
+
df_luck,
|
55 |
+
height=35 * (len(df_luck) + 1) + 3,
|
56 |
+
)
|
57 |
|
58 |
if st.checkbox("View/Export Full Scores"):
|
59 |
st.dataframe(df_weekly_results)
|