vectorbt
vectorbt copied to clipboard
Bug while trying to 'infer_objects'
Lately, the following two lines have been inserted (v0.25.1).
https://github.com/polakowo/vectorbt/blob/da256514d426d0801d2558758055607a8a379b27/vectorbt/data/base.py#L695-L696
This code change seems to be responsible for a bug.
I created a custom BloombergData
provider. I have some test data with two securities, which only have open prices. The prices are of float64
dtype. I should mention, that the two price series are not of the same length.
Calling something like prices.get("open")
will lead to an error, which can be attributed to the above mentioned code lines.
Unfortunately, I am not able to post the exact Traceback (due to corporate restrictions), but the essence is this:
TypeError: NDFrame.infer_objects() got an unexpected keyword argument 'copy'
Having the same issue here, I tried running the code in the README and had the same error.
Thanks for reporting, will be fixed today.
Fixed in 0.25.3.