mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
chore: fix future warning on pandas
This commit is contained in:
parent
15771043f7
commit
6754072bca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user