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
The actual implementation of pandas.Index.shift for a datetime-like index takes a differently named parameter for the number of shifts than the base method.
It should be named periods, which would also be consistent with the pandas.DataFrame.shift or pandas.Series.shift methods. But for a DatetimeIndex it's n.