Update app.py
Browse files
app.py
CHANGED
|
@@ -4,12 +4,7 @@ import os
|
|
| 4 |
import zipfile
|
| 5 |
|
| 6 |
def process_csv(uploaded_file):
|
| 7 |
-
|
| 8 |
-
Process the uploaded CSV file to:
|
| 9 |
-
1. Replace text-based columns and numerical columns with less than six unique options with coded values.
|
| 10 |
-
2. Fill missing values in numerical columns with their respective medians.
|
| 11 |
-
3. Return a zip file containing the modified CSV file, a legend CSV, and a CSV detailing data fill methods.
|
| 12 |
-
"""
|
| 13 |
# Load the data from the uploaded file's byte stream
|
| 14 |
data = pd.read_csv(uploaded_file.name)
|
| 15 |
|
|
|
|
| 4 |
import zipfile
|
| 5 |
|
| 6 |
def process_csv(uploaded_file):
|
| 7 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
# Load the data from the uploaded file's byte stream
|
| 9 |
data = pd.read_csv(uploaded_file.name)
|
| 10 |
|