Dominik Berger
Dominik Berger
Hi there @bellerofonte , I tried to reproduce your error but without success. However this seems to be related to your pandas version as in `version 2.0.1` the `get_loc` function...
@eervin123 Thank you for sharing. Additionally could you send your code and data you used. Because I struggle to reproduce on my side. Will help me to better diagnose why...
@eervin123 Many thanks, will start exploring tomorrow morning. ;)
I was able to reproduce the bug. After trying to solve it I have found that it already was solved and pushed to main back in Dezember 2022. But it...
> @DominikBerger01 @eervin123 thank you for your effort spent on finding the problem! > > Is it a good idea to add `[0]` directly into `_plotting.py` in my packages directory...
> Not sure how to fix the code, any ideas? > > ``` > File ~/.local/lib/python3.10/site-packages/backtesting/_plotting.py:148, in _maybe_resample_data.._group_trades..f(s, new_index, bars) > 147 mean_time = int(bars.loc[s.index].view(int).mean()) > --> 148 new_bar_idx =...
> ### Expected Behavior > > Using a backtest instance to plot (calling the plot() function) the graphs of the performance of the strategy. > ### Actual Behavior > >...
Please specify.
I've got the same issue. From what I can tell based on a quick review, the side structure has changed hence and update would be needed.