Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -150,11 +150,6 @@ col1, col2, col3 = st.columns(3,gap='large')
|
|
150 |
def upload_click(): st.session_state.uploading_way = "upload"
|
151 |
col1.markdown("<h5 align='center'> Upload File", unsafe_allow_html=True)
|
152 |
col1.button("Upload File", key="upload_file", use_container_width=True, on_click=upload_click)
|
153 |
-
|
154 |
-
# Select
|
155 |
-
def select_click(): st.session_state.uploading_way = "select"
|
156 |
-
col2.markdown("<h5 align='center'> Select from Ours", unsafe_allow_html=True)
|
157 |
-
col2.button("Select from Ours", key="select_from_ours", use_container_width=True, on_click=select_click)
|
158 |
|
159 |
# URL
|
160 |
def url_click(): st.session_state.uploading_way = "url"
|
@@ -251,6 +246,7 @@ if st.session_state.df is not None:
|
|
251 |
st.write(df.dtypes)
|
252 |
new_line()
|
253 |
|
|
|
254 |
if st.checkbox("Show Skewness and Kurtosis", value=False):
|
255 |
skew_kurt = pd.DataFrame(data={
|
256 |
'Skewness': df.skew(),
|
@@ -259,6 +255,7 @@ if st.session_state.df is not None:
|
|
259 |
st.write(skew_kurt)
|
260 |
new_line()
|
261 |
|
|
|
262 |
# Describe Numerical
|
263 |
describe = st.checkbox("Show Description **(Numerical Features)**", value=False)
|
264 |
new_line()
|
@@ -271,7 +268,7 @@ if st.session_state.df is not None:
|
|
271 |
st.write(unique_counts)
|
272 |
new_line()
|
273 |
|
274 |
-
|
275 |
# Describe Categorical
|
276 |
describe_cat = st.checkbox("Show Description **(Categorical Features)**", value=False)
|
277 |
new_line()
|
@@ -491,8 +488,8 @@ df.drop(columns={col_to_delete}, inplace=True)
|
|
491 |
ax.imshow(wordcloud, interpolation='bilinear')
|
492 |
ax.axis('off')
|
493 |
st.pyplot(fig)
|
494 |
-
|
495 |
-
|
496 |
|
497 |
|
498 |
|
|
|
150 |
def upload_click(): st.session_state.uploading_way = "upload"
|
151 |
col1.markdown("<h5 align='center'> Upload File", unsafe_allow_html=True)
|
152 |
col1.button("Upload File", key="upload_file", use_container_width=True, on_click=upload_click)
|
|
|
|
|
|
|
|
|
|
|
153 |
|
154 |
# URL
|
155 |
def url_click(): st.session_state.uploading_way = "url"
|
|
|
246 |
st.write(df.dtypes)
|
247 |
new_line()
|
248 |
|
249 |
+
new_line()
|
250 |
if st.checkbox("Show Skewness and Kurtosis", value=False):
|
251 |
skew_kurt = pd.DataFrame(data={
|
252 |
'Skewness': df.skew(),
|
|
|
255 |
st.write(skew_kurt)
|
256 |
new_line()
|
257 |
|
258 |
+
new_line()
|
259 |
# Describe Numerical
|
260 |
describe = st.checkbox("Show Description **(Numerical Features)**", value=False)
|
261 |
new_line()
|
|
|
268 |
st.write(unique_counts)
|
269 |
new_line()
|
270 |
|
271 |
+
new_line()
|
272 |
# Describe Categorical
|
273 |
describe_cat = st.checkbox("Show Description **(Categorical Features)**", value=False)
|
274 |
new_line()
|
|
|
488 |
ax.imshow(wordcloud, interpolation='bilinear')
|
489 |
ax.axis('off')
|
490 |
st.pyplot(fig)
|
491 |
+
else:
|
492 |
+
st.write("No words available to create a word cloud.")
|
493 |
|
494 |
|
495 |
|