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
Calling shift(0) on an empty DatetimeIndex seems to return an empty index, but calling shift(n) with a non-zero n raises an IndexError. I would expect this to return an empty index.
# this workspd.date_range(start='20161021', end='20161021', freq='BM').shift(0)
# this raisespd.date_range(start='20161021', end='20161021', freq='BM').shift(1)
# IndexError: index 0 is out of bounds for axis 0 with size 0pd.__version__# u'0.18.1'
The text was updated successfully, but these errors were encountered:
Calling
shift(0)
on an empty DatetimeIndex seems to return an empty index, but callingshift(n)
with a non-zeron
raises an IndexError. I would expect this to return an empty index.The text was updated successfully, but these errors were encountered: