Snehadeep commited on
Commit
330b065
1 Parent(s): d9e7031

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -16
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
- while True:
84
- dataset,final=ploting()
85
- p1=st.empty()
86
- p2=st.empty()
87
- p3=st.empty()
88
- p1.dataframe(dataset.style.highlight_max(['% change op put','% change op'],axis=0)) #Column hightlight
89
- p2.dataframe(final.style.highlight_max(['cal_per','put_per'],axis=1)) # row highlight
90
- fig, ax = plt.subplots(figsize=(6, 2))
91
- ax.plot(final['time'],final['pcr'])
92
- ax.axhline(y=0, color='black', linestyle='solid') # 0 line graph
93
- fig.autofmt_xdate(rotation=70)
94
- p3.pyplot(fig)
95
- time.sleep(3*60) # how to the start again code check upper condition min * sec
96
- p1.empty() # then clean all data frame
97
- p2.empty()
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