Esmaeilkiani commited on
Commit
9d61dec
1 Parent(s): a5c2a33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -13,7 +13,7 @@ def show_dashboard():
13
  data = pd.read_csv(uploaded_file)
14
  st.dataframe(data)
15
  if st.button("تحلیل داده با نمودار"):
16
- st.plotly_chart(plot_3d_chart(data, 'week', 'height'))
17
 
18
  def show_crop_growth_analysis():
19
  st.title("تحلیل رشد محصول")
@@ -22,7 +22,7 @@ def show_crop_growth_analysis():
22
  data = pd.read_csv(uploaded_file)
23
  st.dataframe(data)
24
  if st.button("تحلیل داده با نمودار"):
25
- st.plotly_chart(plot_3d_chart(data, 'week', 'height'))
26
 
27
  def show_weather_data():
28
  st.title("داده‌های هواشناسی")
@@ -61,9 +61,9 @@ def show_growth_comparison():
61
  st.dataframe(data_1399)
62
  st.dataframe(data_1403)
63
  if st.button("تحلیل داده با نمودار"):
64
- st.plotly_chart(plot_3d_chart(data_1399, 'week', 'height', title="سال 1399"))
65
- st.plotly_chart(plot_3d_chart(data_1403, 'week', 'height', title="سال 1403"))
66
- st.plotly_chart(compare_growth(data_1399, data_1403, 'week', 'height'))
67
 
68
  def plot_3d_chart(data, x_column, y_column, title=""):
69
  fig = go.Figure(data=[go.Scatter3d(x=data[x_column], y=data[y_column], z=data[y_column],
 
13
  data = pd.read_csv(uploaded_file)
14
  st.dataframe(data)
15
  if st.button("تحلیل داده با نمودار"):
16
+ st.plotly_chart(plot_3d_chart(data, 'هفته', 'ارتفاع'))
17
 
18
  def show_crop_growth_analysis():
19
  st.title("تحلیل رشد محصول")
 
22
  data = pd.read_csv(uploaded_file)
23
  st.dataframe(data)
24
  if st.button("تحلیل داده با نمودار"):
25
+ st.plotly_chart(plot_3d_chart(data, 'هفته', 'ارتفاع'))
26
 
27
  def show_weather_data():
28
  st.title("داده‌های هواشناسی")
 
61
  st.dataframe(data_1399)
62
  st.dataframe(data_1403)
63
  if st.button("تحلیل داده با نمودار"):
64
+ st.plotly_chart(plot_3d_chart(data_1399, 'هفته', 'ارتفاع', title="سال 1399"))
65
+ st.plotly_chart(plot_3d_chart(data_1403, 'هفته', 'ارتفاع', title="سال 1403"))
66
+ st.plotly_chart(compare_growth(data_1399, data_1403, 'هفته', 'ارتفاع'))
67
 
68
  def plot_3d_chart(data, x_column, y_column, title=""):
69
  fig = go.Figure(data=[go.Scatter3d(x=data[x_column], y=data[y_column], z=data[y_column],