Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -486,13 +486,14 @@ with tab1:
|
|
486 |
|
487 |
pages = split_frame(gamelog_data, batch_size)
|
488 |
# pages = pages.set_index('Player')
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
|
|
496 |
|
497 |
with tab2:
|
498 |
st.info(t_stamp)
|
|
|
486 |
|
487 |
pages = split_frame(gamelog_data, batch_size)
|
488 |
# pages = pages.set_index('Player')
|
489 |
+
if len(player_var1) > 0:
|
490 |
+
display.dataframe(data=pages[current_page - 1].style.format(precision=2), height=500, use_container_width=True)
|
491 |
+
st.download_button(
|
492 |
+
label="Export hitter gamelogs model",
|
493 |
+
data=convert_df_to_csv(gamelog_data),
|
494 |
+
file_name='Gamelogs_Hitter_View.csv',
|
495 |
+
mime='text/csv',
|
496 |
+
)
|
497 |
|
498 |
with tab2:
|
499 |
st.info(t_stamp)
|