Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,6 +55,13 @@ if uploaded_files:
|
|
| 55 |
imputer = SimpleImputer(strategy='most_frequent')
|
| 56 |
df[categorical_cols] = imputer.fit_transform(df[categorical_cols])
|
| 57 |
dataframes[i] = df
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
show_dataframes = st.checkbox("Show DataFrames", value=True)
|
| 60 |
if show_dataframes:
|
|
@@ -62,7 +69,7 @@ if uploaded_files:
|
|
| 62 |
st.write(f"DataFrame {i + 1}")
|
| 63 |
st.dataframe(df)
|
| 64 |
|
| 65 |
-
|
| 66 |
|
| 67 |
if st.button("Download cleaned data"):
|
| 68 |
for i, df in enumerate(dataframes):
|
|
|
|
| 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 |
+
columns = st.selectbox("Select column", dataframes.columns)
|
| 61 |
+
old_values = st.multiselect("Current Values",list(dataframes[columns].unique()),list(dataframes[columns].unique()))
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
|
| 65 |
|
| 66 |
show_dataframes = st.checkbox("Show DataFrames", value=True)
|
| 67 |
if show_dataframes:
|
|
|
|
| 69 |
st.write(f"DataFrame {i + 1}")
|
| 70 |
st.dataframe(df)
|
| 71 |
|
| 72 |
+
|
| 73 |
|
| 74 |
if st.button("Download cleaned data"):
|
| 75 |
for i, df in enumerate(dataframes):
|