fix: astype handling

This commit is contained in:
robcaulk 2024-04-06 23:43:29 +02:00
parent b19b4d001c
commit 6a8abd5d45

View File

@ -280,7 +280,7 @@ class FreqaiDataDrawer:
# set new_pred values to nans (we want to signal to user that there was nothing
# historically made during downtime. The newest pred will get appeneded later in
# append_model_predictions)
new_pred.iloc[:, :] = np.nan.astype(new_pred.dtypes)
new_pred.iloc[:, :] = new_pred.astype(float).values * np.nan
new_pred["date_pred"] = dataframe["date"]
hist_preds = self.historic_predictions[pair].copy()