Hi,
I am trying to run a code on button click, the code is running fine but st.success or st.write methods are not displaying any value. Below is my code:
state.orgnl_rem_z_score = st.multiselect("Select list of variables",preproc.fetch_numeric_cols(state, data_select, numeric_dtype),state.orgnl_rem_z_score)
if st.button("Remove Outlier by Z-Score"):
try:
z = np.abs(stats.zscore(state.df[state.orgnl_rem_z_score]))
state.df = state.df[(z < 3).all(axis=1)]
st.success("asdasd")
st.write(state.df.shape)
except:
pass
Let me know if anyone can help me with this.
Thanks in advance !!!