Adding the "DayOfWeek" to the columns to drop and see if it fixes the error

This commit is contained in:
rr
2025-09-02 17:06:35 +02:00
parent 4f4e9244ab
commit 65dac044d7
+3 -2
View File
@@ -105,9 +105,10 @@ def main():
def reduce_columns(df, filename): def reduce_columns(df, filename):
if '15MIN' in 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: else:
return df.drop(columns=['Month', 'Year', 'date']) return df.drop(columns=['Month', 'Year', 'date', 'DayOfWeek'], errors='ignore')
def main_two(): def main_two():
results = pd.DataFrame() results = pd.DataFrame()