awacke1 commited on
Commit
3216ee8
1 Parent(s): 2f5195c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -18
app.py CHANGED
@@ -82,28 +82,28 @@ for uploaded_file in uploaded_files:
82
  if st.form_submit_button("Replace"):
83
  df[columns]=df[columns].replace(old_val,new_val)
84
  st.success("{} replace with {} successfully ".format(old_val,new_val))
85
- excel = df.to_excel(r"F:\book2.xlsx", index = False, header=True,encoding="utf-8")
86
- df =pd.read_excel(r"F:\book2.xlsx")
87
  mydf.add_rows(df)
88
 
89
  #st.markdown("WebGL Rendering with 1,000,000 Points")
90
 
91
- #N = 1000000
92
- #fig = go.Figure()
93
- #fig.add_trace(
94
- #go.Scattergl(
95
- #x = np.random.randn(N),
96
- #y = np.random.randn(N),
97
- #mode = 'markers',
98
- #marker = dict(
99
- #line = dict(
100
- #width = 1,
101
- #color = 'DarkSlateGrey')
102
- #)
103
- #)
104
- #)
105
- #fig.show()
106
- #st.plotly_chart(fig, use_container_width=True)
107
 
108
 
109
 
 
82
  if st.form_submit_button("Replace"):
83
  df[columns]=df[columns].replace(old_val,new_val)
84
  st.success("{} replace with {} successfully ".format(old_val,new_val))
85
+ excel = df.to_excel(r"book2.xlsx", index = False, header=True,encoding="utf-8")
86
+ df =pd.read_excel(r"book2.xlsx")
87
  mydf.add_rows(df)
88
 
89
  #st.markdown("WebGL Rendering with 1,000,000 Points")
90
 
91
+ N = 1000000
92
+ fig = go.Figure()
93
+ fig.add_trace(
94
+ go.Scattergl(
95
+ x = np.random.randn(N),
96
+ y = np.random.randn(N),
97
+ mode = 'markers',
98
+ marker = dict(
99
+ line = dict(
100
+ width = 1,
101
+ color = 'DarkSlateGrey')
102
+ )
103
+ )
104
+ )
105
+ fig.show()
106
+ st.plotly_chart(fig, use_container_width=True)
107
 
108
 
109