Adding the "DayOfWeek" to the columns to drop and see if it fixes the error
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user