How to access index beyond [-2]? #836
CadeHalcyon
started this conversation in
General
Replies: 1 comment 1 reply
-
You can simply wrap it all in: max_lookback = 3
if len(self.Signal) > max_lookback:
... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, how do we access info from Data more then [-2] back, please? See below simple example for illustrative purposes:
`def next(self):
When I try this, I get the following error regarding Pre_Signal_2:
IndexError: index -3 is out of bounds for axis 0 with size 2
Beta Was this translation helpful? Give feedback.
All reactions