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
import trading_calendars as tc
exchange = tc.get_calendar('XSWX')
exchange.next_open(pd.Timestamp('2021-12-27')
an index 8032 is out of bounds error for axis 0 with size 8032 is thrown.
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\Users\raphael\anaconda3\envs\levine\lib\site-packages\trading_calendars\trading_calendar.py", line 462, in next_open
idx = next_divider_idx(self.market_opens_nanos, dt.value)
File "C:\Users\raphael\anaconda3\envs\levine\lib\site-packages\trading_calendars\calendar_helpers.py", line 12, in next_divider_idx
target = dividers[divider_idx]
IndexError: index 8032 is out of bounds for axis 0 with size 8032
Seems to be a pandas Problem?
The text was updated successfully, but these errors were encountered:
When using this code:
an index 8032 is out of bounds error for axis 0 with size 8032 is thrown.
Seems to be a pandas Problem?
The text was updated successfully, but these errors were encountered: