You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
Describe the bug
Hello! Thank you for your library. It is awesome. I started to use it and now I'm trying to code my strategies with pairs trading. But I've got an issue and I cannot solve it. Here is the example. And the output is the following:
start!
/usr/local/lib/python3.7/site-packages/pandas/core/indexing.py:376: FutureWarning: Converting timezone-aware DatetimeArray to timezone-naive ndarray with 'datetime64[ns]' dtype. In the future, this will return an ndarray with 'object' dtype where each element is a 'pandas.Timestamp' with the correct 'tz'.
To accept the future behavior, pass 'dtype=object'.
To keep the old behavior, pass 'dtype="datetime64[ns]"'.
self.obj[key] = _infer_fill_value(value)
index -1 is out of bounds for axis 0 with size 0
Just by the error message I would assume that the issue is caused by slicing of a numpy array of a zero size somewhere in the code as in the example below
>>> import numpy as np
>>> np.array([])[-1]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: index -1 is out of bounds for axis 0 with size 0
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Hello! Thank you for your library. It is awesome. I started to use it and now I'm trying to code my strategies with pairs trading. But I've got an issue and I cannot solve it. Here is the example. And the output is the following:
So, what is wrong and fix it?
Thank you
To Reproduce
Desktop (please complete the following information):
Additional context
I built it from source.
The text was updated successfully, but these errors were encountered: