Spaces:
Runtime error
Runtime error
Zack
commited on
Commit
·
bf219fd
1
Parent(s):
e62a721
fix: Convert timestamp after cleaning
Browse files
app.py
CHANGED
@@ -84,10 +84,13 @@ def clean_data(df):
|
|
84 |
def master(file):
|
85 |
# read file
|
86 |
data = pd.read_csv(file.name)
|
87 |
-
data['timestamp'] = pd.to_datetime(data['timestamp'])
|
88 |
|
89 |
# clean data
|
90 |
data = clean_data(data)
|
|
|
|
|
|
|
|
|
91 |
data.set_index("timestamp", inplace=True)
|
92 |
|
93 |
df_test_value = normalize_data(data)
|
|
|
84 |
def master(file):
|
85 |
# read file
|
86 |
data = pd.read_csv(file.name)
|
|
|
87 |
|
88 |
# clean data
|
89 |
data = clean_data(data)
|
90 |
+
|
91 |
+
# Convert timestamp to datetime after cleaning
|
92 |
+
data['timestamp'] = pd.to_datetime(data['timestamp'])
|
93 |
+
|
94 |
data.set_index("timestamp", inplace=True)
|
95 |
|
96 |
df_test_value = normalize_data(data)
|