AaroncoolPx

Results 5 comments of AaroncoolPx

I realise that the problem was probably caused by the installed pandas version 2.1. Apparently, the parameter method has been deprecated and removed after pandas 2.0. By installing pandas 1.5.2,...

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 = new_index.get_loc(mean_time, method='nearest') 149 return new_bar_idx TypeError:...

> Hey, im getting the same error;( bokeh 3.3.0 didn't work for me. > > Are there any solutions? Same here

I realise that the problem that I posted is caused by installed pandas version 2.1. Apparently, the parameter method has been deprecated and removed after pandas 2.0. By installing pandas...

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 = new_index.get_loc(mean_time, method='nearest') 149 return new_bar_idx TypeError:...