Spaces:
Running
Running
James McCool
commited on
Commit
·
582f339
1
Parent(s):
981c8e1
added export button for player frequency
Browse files
app.py
CHANGED
@@ -532,3 +532,10 @@ with tab2:
|
|
532 |
# Display the table
|
533 |
st.write("Player Frequency Table:")
|
534 |
st.dataframe(summary_df.style.format({'Percentage': '{:.2f}%'}), height=500, use_container_width=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
532 |
# Display the table
|
533 |
st.write("Player Frequency Table:")
|
534 |
st.dataframe(summary_df.style.format({'Percentage': '{:.2f}%'}), height=500, use_container_width=True)
|
535 |
+
|
536 |
+
st.download_button(
|
537 |
+
label="Export player frequency",
|
538 |
+
data=convert_df(summary_df),
|
539 |
+
file_name='NBA_player_frequency.csv',
|
540 |
+
mime='text/csv',
|
541 |
+
)
|