Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -754,6 +754,7 @@ with tab3:
|
|
754 |
|
755 |
if plot_count == "One":
|
756 |
graph_data = working_data.reindex(['Date', plot_var1],axis="columns")
|
|
|
757 |
fig, ax1 = plt.subplots(figsize=(20, 10), layout='tight')
|
758 |
|
759 |
color = 'tab:blue'
|
@@ -765,9 +766,10 @@ with tab3:
|
|
765 |
buf = BytesIO()
|
766 |
fig.savefig(buf, format="png")
|
767 |
st.image(buf)
|
768 |
-
st.table(
|
769 |
elif plot_count == "Two":
|
770 |
graph_data = working_data.reindex(['Date', plot_var1, plot_var2],axis="columns")
|
|
|
771 |
fig, ax1 = plt.subplots(figsize=(20, 10), layout='tight')
|
772 |
|
773 |
color = 'tab:blue'
|
@@ -788,9 +790,10 @@ with tab3:
|
|
788 |
buf = BytesIO()
|
789 |
fig.savefig(buf, format="png")
|
790 |
st.image(buf)
|
791 |
-
st.table(
|
792 |
elif plot_count == "Three":
|
793 |
graph_data = working_data.reindex(['Date', plot_var1, plot_var2, plot_var3],axis="columns")
|
|
|
794 |
fig, ax1 = plt.subplots(figsize=(20, 10), layout='tight')
|
795 |
|
796 |
color = 'tab:blue'
|
@@ -813,4 +816,4 @@ with tab3:
|
|
813 |
buf = BytesIO()
|
814 |
fig.savefig(buf, format="png")
|
815 |
st.image(buf)
|
816 |
-
st.table(
|
|
|
754 |
|
755 |
if plot_count == "One":
|
756 |
graph_data = working_data.reindex(['Date', plot_var1],axis="columns")
|
757 |
+
disp_data = graph_data.drop(subset=['Date'])
|
758 |
fig, ax1 = plt.subplots(figsize=(20, 10), layout='tight')
|
759 |
|
760 |
color = 'tab:blue'
|
|
|
766 |
buf = BytesIO()
|
767 |
fig.savefig(buf, format="png")
|
768 |
st.image(buf)
|
769 |
+
st.table(disp_data.mean())
|
770 |
elif plot_count == "Two":
|
771 |
graph_data = working_data.reindex(['Date', plot_var1, plot_var2],axis="columns")
|
772 |
+
disp_data = graph_data.drop(subset=['Date'])
|
773 |
fig, ax1 = plt.subplots(figsize=(20, 10), layout='tight')
|
774 |
|
775 |
color = 'tab:blue'
|
|
|
790 |
buf = BytesIO()
|
791 |
fig.savefig(buf, format="png")
|
792 |
st.image(buf)
|
793 |
+
st.table(disp_data.mean())
|
794 |
elif plot_count == "Three":
|
795 |
graph_data = working_data.reindex(['Date', plot_var1, plot_var2, plot_var3],axis="columns")
|
796 |
+
disp_data = graph_data.drop(subset=['Date'])
|
797 |
fig, ax1 = plt.subplots(figsize=(20, 10), layout='tight')
|
798 |
|
799 |
color = 'tab:blue'
|
|
|
816 |
buf = BytesIO()
|
817 |
fig.savefig(buf, format="png")
|
818 |
st.image(buf)
|
819 |
+
st.table(disp_data.mean())
|