Esmaeilkiani commited on
Commit
99dc75c
·
verified ·
1 Parent(s): 5918be4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -21,30 +21,30 @@ if uploaded_file is not None:
21
  st.subheader("نمودار سه بعدی رشد مزارع")
22
 
23
  fig = go.Figure(data=[go.Scatter3d(
24
- x=df['Week'],
25
- y=df['Height'],
26
- z=df['Growth'],
27
  mode='markers',
28
  marker=dict(
29
  size=8,
30
- color=df['Height'], # set color to an array/list of desired values
31
  colorscale='Viridis', # choose a colorscale
32
  opacity=0.8
33
  )
34
  )])
35
 
36
  fig.update_layout(scene=dict(
37
- xaxis_title='Week',
38
- yaxis_title='Height',
39
- zaxis_title='Growth'
40
  ))
41
 
42
  st.plotly_chart(fig)
43
 
44
  # تحلیل داده‌ها
45
  st.subheader("گزارش تحلیلی")
46
- average_height = df['Height'].mean()
47
- average_growth = df['Growth'].mean()
48
  # Load custom CSS
49
  def load_css(file_path):
50
  with open(file_path) as f:
 
21
  st.subheader("نمودار سه بعدی رشد مزارع")
22
 
23
  fig = go.Figure(data=[go.Scatter3d(
24
+ x=df['هفته'],
25
+ y=df['ارتفاع'],
26
+ z=df['رشد'],
27
  mode='markers',
28
  marker=dict(
29
  size=8,
30
+ color=df['ارتفاع'], # set color to an array/list of desired values
31
  colorscale='Viridis', # choose a colorscale
32
  opacity=0.8
33
  )
34
  )])
35
 
36
  fig.update_layout(scene=dict(
37
+ xaxis_title='هفته',
38
+ yaxis_title='ارتفاع',
39
+ zaxis_title='رشد'
40
  ))
41
 
42
  st.plotly_chart(fig)
43
 
44
  # تحلیل داده‌ها
45
  st.subheader("گزارش تحلیلی")
46
+ average_height = df['ارتفاع'].mean()
47
+ average_growth = df['رشد'].mean()
48
  # Load custom CSS
49
  def load_css(file_path):
50
  with open(file_path) as f: