changed app file
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ st.write(df.describe())
|
|
| 31 |
# visualization
|
| 32 |
st.subheader('The Closing price vs Time Chart')
|
| 33 |
fig = plt.figure(figsize=(12,6))
|
| 34 |
-
plt.plot(df.
|
| 35 |
st.pyplot(fig)
|
| 36 |
|
| 37 |
# with Moving Averages
|
|
@@ -39,7 +39,7 @@ st.subheader('The Closing price vs Time Chart with MA')
|
|
| 39 |
ma100 = df.Close.rolling(100).mean()
|
| 40 |
ma200 = df.Close.rolling(200).mean()
|
| 41 |
fig = plt.figure(figsize=(12,6))
|
| 42 |
-
plt.plot(df.
|
| 43 |
plt.plot(ma100,'r')
|
| 44 |
plt.plot(ma200,'g')
|
| 45 |
st.pyplot(fig)
|
|
|
|
| 31 |
# visualization
|
| 32 |
st.subheader('The Closing price vs Time Chart')
|
| 33 |
fig = plt.figure(figsize=(12,6))
|
| 34 |
+
plt.plot(df.Close)
|
| 35 |
st.pyplot(fig)
|
| 36 |
|
| 37 |
# with Moving Averages
|
|
|
|
| 39 |
ma100 = df.Close.rolling(100).mean()
|
| 40 |
ma200 = df.Close.rolling(200).mean()
|
| 41 |
fig = plt.figure(figsize=(12,6))
|
| 42 |
+
plt.plot(df.Close,'b')
|
| 43 |
plt.plot(ma100,'r')
|
| 44 |
plt.plot(ma200,'g')
|
| 45 |
st.pyplot(fig)
|