chore: fix future warning on pandas

This commit is contained in:
Robert Caulk 2023-12-03 12:55:16 +01:00 committed by GitHub
parent 15771043f7
commit 6754072bca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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