From 78cb1e608fbbd4f102a96ae05ae65480c9f70d0d Mon Sep 17 00:00:00 2001 From: robcaulk Date: Sun, 10 Dec 2023 15:30:19 +0100 Subject: [PATCH] fix: ensure we have a row of zeros appended (not the function) --- freqtrade/freqai/data_drawer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqai/data_drawer.py b/freqtrade/freqai/data_drawer.py index e3027267b..6316c0a86 100644 --- a/freqtrade/freqai/data_drawer.py +++ b/freqtrade/freqai/data_drawer.py @@ -323,7 +323,7 @@ class FreqaiDataDrawer: index = self.historic_predictions[pair].index[-1:] columns = self.historic_predictions[pair].columns - zeros_df = pd.DataFrame(np.zeros, index=index, columns=columns) + zeros_df = pd.DataFrame(np.zeros((1, len(columns))), index=index, columns=columns) self.historic_predictions[pair] = pd.concat( [self.historic_predictions[pair], zeros_df], ignore_index=True, axis=0) df = self.historic_predictions[pair]