Update app.py
Browse files
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"
|
86 |
-
df =pd.read_excel(r"
|
87 |
mydf.add_rows(df)
|
88 |
|
89 |
#st.markdown("WebGL Rendering with 1,000,000 Points")
|
90 |
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
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 |
|