Fatal error in strategy:Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/blueshift/core/algorithm/algorithm.py", line 1008, in _back_test_generator
self._USER_FUNC_DISPATCH.get(bar,self._bar_noop)(ts)
File "/usr/local/lib/python3.10/dist-packages/blueshift/core/algorithm/algorithm.py", line 486, in initialize
self._initialize(self.context)
File "Nifty.py", line 23, in initialize
File "/usr/local/lib/python3.10/dist-packages/blueshift/core/algorithm/api_decorator.py", line 54, in decorated
return f(algo_instance, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/blueshift/lib/common/decorators.py", line 352, in decorated
return f(self, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/blueshift/core/algorithm/algorithm.py", line 2608, in schedule_function
rule = TimeRule(date_rule, time_rule, start_dt=start_dt,
File "/usr/local/lib/python3.10/dist-packages/blueshift/core/utils/scheduler.py", line 396, in __init__
self._calc_dts()
File "/usr/local/lib/python3.10/dist-packages/blueshift/core/utils/scheduler.py", line 408, in _calc_dts
self._trigger_dts = self._trigger_dts_calc(self._start_dt,
File "/usr/local/lib/python3.10/dist-packages/blueshift/core/utils/scheduler.py", line 428, in _trigger_dts_calc
dt_dates = self._dt_func(sessions)
File "/usr/local/lib/python3.10/dist-packages/blueshift/core/utils/scheduler.py", line 123, in func
pd.Int64Index(sessions.isocalendar().week)]).nth(days_offset)
AttributeError: module 'pandas' has no attribute 'Int64Index'
My code in line 23 is
schedule_function(start_trade, date_rules.week_end(2), time_rules.market_close(minutes=15))
why i am getting this error