Multichem commited on
Commit
0574705
·
verified ·
1 Parent(s): 343a518

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -627,7 +627,7 @@ with tab2:
627
  with tab3:
628
  st.info(t_stamp)
629
  st.info("Note when creating graphs with multiple stats: The LEFT y-axis will be locked to values of the first stat you choose, while the RIGHT y-axis will be locked to the values of the second or third stat you chose depending on wether you are viewing Two or Three stats. So, to maximize the use of the graphs, you'll want to make sure that you are using compatible stats. I.E. use percentages together like GB% and FB% or average based stats like AVG and BABIP")
630
- col1, col2 = st.columns([1, 9])
631
  with col1:
632
  if st.button("Reset Data", key='reset3'):
633
  st.cache_data.clear()
@@ -766,7 +766,6 @@ with tab3:
766
  buf = BytesIO()
767
  fig.savefig(buf, format="png")
768
  st.image(buf)
769
- st.table(disp_data)
770
  elif plot_count == "Two":
771
  graph_data = working_data.reindex(['Date', plot_var1, plot_var2],axis="columns")
772
  disp_data = working_data
@@ -790,7 +789,6 @@ with tab3:
790
  buf = BytesIO()
791
  fig.savefig(buf, format="png")
792
  st.image(buf)
793
- st.table(disp_data)
794
  elif plot_count == "Three":
795
  graph_data = working_data.reindex(['Date', plot_var1, plot_var2, plot_var3],axis="columns")
796
  disp_data = working_data
@@ -816,4 +814,5 @@ with tab3:
816
  buf = BytesIO()
817
  fig.savefig(buf, format="png")
818
  st.image(buf)
819
- st.table(disp_data)
 
 
627
  with tab3:
628
  st.info(t_stamp)
629
  st.info("Note when creating graphs with multiple stats: The LEFT y-axis will be locked to values of the first stat you choose, while the RIGHT y-axis will be locked to the values of the second or third stat you chose depending on wether you are viewing Two or Three stats. So, to maximize the use of the graphs, you'll want to make sure that you are using compatible stats. I.E. use percentages together like GB% and FB% or average based stats like AVG and BABIP")
630
+ col1, col2, col3 = st.columns([1, 7, 2])
631
  with col1:
632
  if st.button("Reset Data", key='reset3'):
633
  st.cache_data.clear()
 
766
  buf = BytesIO()
767
  fig.savefig(buf, format="png")
768
  st.image(buf)
 
769
  elif plot_count == "Two":
770
  graph_data = working_data.reindex(['Date', plot_var1, plot_var2],axis="columns")
771
  disp_data = working_data
 
789
  buf = BytesIO()
790
  fig.savefig(buf, format="png")
791
  st.image(buf)
 
792
  elif plot_count == "Three":
793
  graph_data = working_data.reindex(['Date', plot_var1, plot_var2, plot_var3],axis="columns")
794
  disp_data = working_data
 
814
  buf = BytesIO()
815
  fig.savefig(buf, format="png")
816
  st.image(buf)
817
+ with col3:
818
+ st.table(disp_data)