Commit 6577d3c1 authored by Laurens D'hooge's avatar Laurens D'hooge
Browse files

correct spelling error

parent 71500597
......@@ -141,7 +141,7 @@ def clean_dataset(dataset, filetypes=['feather', 'parquet', 'csv']):
# Drop unrelevant columns
df.drop(columns=drop_columns, inplace=True, errors="ignore")
Parse Timestamp column to pandas datetime
# Parse Timestamp column to pandas datetime
df['Timestamp'] = pd.to_datetime(df['Timestamp'], errors='coerce')
df['Timestamp'] = df['Timestamp'].apply(lambda x: x + pd.Timedelta(hours=12) if x.hour < 8 else x)
df = df.sort_values(by=['Timestamp'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment