From 6754072bca5d4f3608795f1d146dc610fc27e2c5 Mon Sep 17 00:00:00 2001 From: Robert Caulk Date: Sun, 3 Dec 2023 12:55:16 +0100 Subject: [PATCH] chore: fix future warning on pandas --- freqtrade/freqai/data_drawer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/freqai/data_drawer.py b/freqtrade/freqai/data_drawer.py index cfae6f5d3..f8b8f0de4 100644 --- a/freqtrade/freqai/data_drawer.py +++ b/freqtrade/freqai/data_drawer.py @@ -317,9 +317,9 @@ class FreqaiDataDrawer: index = self.historic_predictions[pair].index[-1:] columns = self.historic_predictions[pair].columns - nan_df = pd.DataFrame(np.nan, index=index, columns=columns) + zeros_df = pd.DataFrame(np.zeros, index=index, columns=columns) self.historic_predictions[pair] = pd.concat( - [self.historic_predictions[pair], nan_df], ignore_index=True, axis=0) + [self.historic_predictions[pair], zeros_df], ignore_index=True, axis=0) df = self.historic_predictions[pair] # model outputs and associated statistics