Fix test warning

This commit is contained in:
Matthias
2022-09-27 08:10:58 +00:00
parent 43e847ff2f
commit 8c2e473ee5
5 changed files with 9 additions and 9 deletions

View File

@@ -284,7 +284,7 @@ def load_backtest_data(filename: Union[Path, str], strategy: Optional[str] = Non
df['enter_tag'] = df['buy_tag']
df = df.drop(['buy_tag'], axis=1)
if 'orders' not in df.columns:
df.loc[:, 'orders'] = None
df['orders'] = None
else:
# old format - only with lists.