Autoregressive test score calculated on 96 values

This commit is contained in:
Victor Mylle
2023-11-13 23:14:07 +00:00
parent caeba6b841
commit 75f1f64c38
4 changed files with 45 additions and 13 deletions

View File

@@ -66,15 +66,6 @@ class DataProcessor:
df = df[['datetime', 'load_forecast', 'total_load']]
df['datetime'] = pd.to_datetime(df['datetime'], utc=True)
# check if there are nan values
if df.isnull().values.any():
# print the rows with nan values
# print(df[df.isnull().any(axis=1)])
# export to temp csv
df[df.isnull().any(axis=1)].to_csv("temp.csv")
# raise ValueError("There are nan values in the load forecast data.")
df.sort_values(by="datetime", inplace=True)
return df