Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import io
|
|
| 4 |
import base64
|
| 5 |
from sklearn.impute import SimpleImputer
|
| 6 |
|
|
|
|
| 7 |
st.set_page_config(page_title="CSV Data Cleaning Tool")
|
| 8 |
|
| 9 |
hide_streamlit_style = """
|
|
@@ -55,10 +56,12 @@ if uploaded_files:
|
|
| 55 |
imputer = SimpleImputer(strategy='most_frequent')
|
| 56 |
df[categorical_cols] = imputer.fit_transform(df[categorical_cols])
|
| 57 |
dataframes[i] = df
|
|
|
|
| 58 |
st.markdown("Data transform")
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
|
|
|
| 62 |
|
| 63 |
|
| 64 |
|
|
|
|
| 4 |
import base64
|
| 5 |
from sklearn.impute import SimpleImputer
|
| 6 |
|
| 7 |
+
|
| 8 |
st.set_page_config(page_title="CSV Data Cleaning Tool")
|
| 9 |
|
| 10 |
hide_streamlit_style = """
|
|
|
|
| 56 |
imputer = SimpleImputer(strategy='most_frequent')
|
| 57 |
df[categorical_cols] = imputer.fit_transform(df[categorical_cols])
|
| 58 |
dataframes[i] = df
|
| 59 |
+
|
| 60 |
st.markdown("Data transform")
|
| 61 |
+
|
| 62 |
+
st.dataframe(dataframes)
|
| 63 |
+
columns = st.selectbox("Select column", dataframes.columns)
|
| 64 |
+
old_values = st.multiselect("Current Values",list(dataframes[columns].unique()),list(dataframes[columns].unique()))
|
| 65 |
|
| 66 |
|
| 67 |
|