From 65dac044d7b3cc69923422a5b589fb52c42443b8 Mon Sep 17 00:00:00 2001 From: Robert Rabbe Date: Tue, 2 Sep 2025 17:06:35 +0200 Subject: [PATCH] Adding the "DayOfWeek" to the columns to drop and see if it fixes the error --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 6e3e8e1..295e8d3 100644 --- a/main.py +++ b/main.py @@ -105,9 +105,10 @@ def main(): def reduce_columns(df, filename): if '15MIN' in filename: - return df.drop(columns=['Month', 'Year', 'date']+weak_column_names) + return df.drop(columns=['Month', 'Year', 'date', 'DayOfWeek']+weak_column_names, errors='ignore') else: - return df.drop(columns=['Month', 'Year', 'date']) + return df.drop(columns=['Month', 'Year', 'date', 'DayOfWeek'], errors='ignore') + def main_two(): results = pd.DataFrame()