mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-02 18:13:04 +00:00
fix: astype handling
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user