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
$ python f.py
0 NaN
1 a
2 b
3 c
dtype: object
Traceback (most recent call last):
File "f.py", line 8, in <module>
print(b.shift()) # error
File "/Users/davidcottrell/dev/pandas.git/pandas/core/series.py", line 2165, in shift
axis=axis, **kwargs)
File "/Users/davidcottrell/dev/pandas.git/pandas/core/generic.py", line 3688, in shift
new_data = self._data.shift(periods=periods, axis=block_axis)
File "/Users/davidcottrell/dev/pandas.git/pandas/core/internals.py", line 2498, in shift
return self.apply('shift', **kwargs)
File "/Users/davidcottrell/dev/pandas.git/pandas/core/internals.py", line 2462, in apply
applied = getattr(b, f)(**kwargs)
File "/Users/davidcottrell/dev/pandas.git/pandas/core/internals.py", line 890, in shift
f_ordered = new_values.flags.f_contiguous
AttributeError: 'Categorical' object has no attribute 'flags'
The text was updated successfully, but these errors were encountered:
Not sure if this is related to #10324 .
Running master with python 3.4.3.
Error looks like this:
The text was updated successfully, but these errors were encountered: