From c9eee2eba4b6c10c21c47fe9362f663feed1df41 Mon Sep 17 00:00:00 2001 From: robcaulk Date: Mon, 10 Oct 2022 20:50:54 +0200 Subject: [PATCH] revert syntax --- tests/freqai/test_freqai_interface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/freqai/test_freqai_interface.py b/tests/freqai/test_freqai_interface.py index c8444067a..445b718d2 100644 --- a/tests/freqai/test_freqai_interface.py +++ b/tests/freqai/test_freqai_interface.py @@ -182,7 +182,8 @@ def test_start_backtesting(mocker, freqai_conf, model, num_files, strat, caplog) df = freqai.dk.use_strategy_to_populate_indicators(strategy, corr_df, base_df, "LTC/BTC") for i in range(5): - df.loc[:, f'%-constant_{i}'] = i + df[f'%-constant_{i}'] = i + # df.loc[:, f'%-constant_{i}'] = i metadata = {"pair": "LTC/BTC"} freqai.start_backtesting(df, metadata, freqai.dk)