Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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['
|
| 25 |
-
y=df['
|
| 26 |
-
z=df['
|
| 27 |
mode='markers',
|
| 28 |
marker=dict(
|
| 29 |
size=8,
|
| 30 |
-
color=df['
|
| 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['
|
| 47 |
-
average_growth = df['
|
| 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:
|