Open chekh opened 6 months ago
For some reason the version when installed by pip doesn't work, but installing by using "pip install -e
Patch works great thx !
Here is a fork in which the error does not occur. It was solved by locking old versions in the dependencies. The aim was to create a stable version. We will subsequently migrate to newer versions.
https://github.com/LUCIT-Systems-and-Development/lucit-backtesting
It would be better to update, instead of being locked into an unsupported version of Pandas.
https://pandas.pydata.org/docs/whatsnew/v1.4.0.html#other-deprecations :
Deprecated
method
argument inIndex.get_loc()
, useindex.get_indexer([label], method=...)
instead.
Of course you're right!
My goal was to have a working version. I wasn't sure whether further side effects would occur if we updated bokeh in the dependencies. with the old version we were on the safe side.
But we will update the code accordingly, here is the current project list: https://github.com/orgs/LUCIT-Systems-and-Development/projects/2/views/1
Expected Behavior
Executing Backtest.plot() raise an exception in backtesting._plotting module in function def _group_trades(column).
The get_loc() method of the Index class in pandas does not have a method argument.
Original code which is rising exception:
As a solution the following code snippet may be applied:
Additional info