Open karanalang opened 1 year ago
I had faced similar issue couple of days ago, maybe you can just skip the ApplianceId where count of NaN rows is less than 2. It worked for me
if history_pd['applianceId'].notnull().sum() < 2:
print(f"Skipping {compartment} due to insufficient data.")
continue # Skip to the next iteration
Hello , we are using FB Prophet for forecasting, and it is working fine.Forecasting runs every 5 days.
I'm trying to enable backfill i.e. if there is processing issue resulting in gaps in forecasting, I want to be able to get the forecast for past days.
Here is the code for this :
all_DF.dropna() is called before the pandas_udf forecast_sent_recv() is called. This should drop all rows with any None columns.
However, I get the following error when i run this on the fill dataset.
Note ; when this run this for a single applianceId, the code goes through.
Also, to backfill - the following change is made:
any ideas on how to fix/debug this ?
tia!