mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
fix: astype handling
This commit is contained in:
parent
b19b4d001c
commit
6a8abd5d45
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user