Fix deprecation warnings from pandas 1.3.0

closes #5251
This commit is contained in:
Matthias
2021-07-09 20:46:38 +02:00
parent 2f33b97b95
commit 6129c5ca9e
4 changed files with 6 additions and 5 deletions

View File

@@ -761,7 +761,7 @@ class RPC:
sell_signals = 0
if has_content:
dataframe.loc[:, '__date_ts'] = dataframe.loc[:, 'date'].astype(int64) // 1000 // 1000
dataframe.loc[:, '__date_ts'] = dataframe.loc[:, 'date'].view(int64) // 1000 // 1000
# Move open to seperate column when signal for easy plotting
if 'buy' in dataframe.columns:
buy_mask = (dataframe['buy'] == 1)