Spaces:
Sleeping
Sleeping
Jon Solow
commited on
Commit
·
346cc58
1
Parent(s):
71c2c20
Add aggragated snap counts to show positional use
Browse files
src/pages/7_Snap_Counts.py
CHANGED
@@ -64,6 +64,15 @@ def get_page():
|
|
64 |
},
|
65 |
)
|
66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
|
68 |
if __name__ == "__main__":
|
69 |
get_page()
|
|
|
64 |
},
|
65 |
)
|
66 |
|
67 |
+
st.header("Aggregated by Position")
|
68 |
+
st.dataframe(
|
69 |
+
filtered_data[filtered_data.offense_pct > 0]
|
70 |
+
.groupby(["team", "position", "week"])
|
71 |
+
.offense_pct.sum()
|
72 |
+
.reset_index()
|
73 |
+
.pivot(index=["team", "position"], columns="week", values="offense_pct")
|
74 |
+
)
|
75 |
+
|
76 |
|
77 |
if __name__ == "__main__":
|
78 |
get_page()
|