diff --git a/tests/data/test_converter_public_trades.py b/tests/data/test_converter_public_trades.py index 61f111c7c..6dedb1c69 100644 --- a/tests/data/test_converter_public_trades.py +++ b/tests/data/test_converter_public_trades.py @@ -280,7 +280,7 @@ def test_public_trades_put_volume_profile_into_ohlcv_candles(public_trades_list_ # Select the second candle (index 1) and attempt to assign the volume profile data # (as a DataFrame) to the 'vp' element. - candles.loc[candles.index == 1, ["vp"]] = candles.loc[candles.index == 1, ["vp"]].applymap( + candles.loc[candles.index == 1, ["vp"]] = candles.loc[candles.index == 1, ["vp"]].map( lambda x: pd.DataFrame(df.to_dict()) )