Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,20 +80,19 @@ if __name__=='__main__':
|
|
80 |
st.markdown(""" CALL % INCREASE MEANS MARKET GOES DOWN
|
81 |
PUT % INCREASE MEANS MARKET GOES UP
|
82 |
""")
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
p3.empty()
|
99 |
|
|
|
80 |
st.markdown(""" CALL % INCREASE MEANS MARKET GOES DOWN
|
81 |
PUT % INCREASE MEANS MARKET GOES UP
|
82 |
""")
|
83 |
+
dataset,final=ploting()
|
84 |
+
p1=st.empty()
|
85 |
+
p2=st.empty()
|
86 |
+
p3=st.empty()
|
87 |
+
p1.dataframe(dataset.style.highlight_max(['% change op put','% change op'],axis=0)) #Column hightlight
|
88 |
+
p2.dataframe(final.style.highlight_max(['cal_per','put_per'],axis=1)) # row highlight
|
89 |
+
fig, ax = plt.subplots(figsize=(6, 2))
|
90 |
+
ax.plot(final['time'],final['pcr'])
|
91 |
+
ax.axhline(y=0, color='black', linestyle='solid') # 0 line graph
|
92 |
+
fig.autofmt_xdate(rotation=70)
|
93 |
+
p3.pyplot(fig)
|
94 |
+
time.sleep(3*60) # how to the start again code check upper condition min * sec
|
95 |
+
p1.empty() # then clean all data frame
|
96 |
+
p2.empty()
|
97 |
+
p3.empty()
|
|
|
98 |
|