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
In[10]: a = pandas.Series(pandas.Categorical(list("abc")))
In[11]: a.cat.labels = [1,2]
In[12]: a.cat.labels
Traceback (most recent call last):
File "C:\portabel\miniconda\envs\pandas_dev\lib\site-packages\IPython\core\interactiveshell.py", line 2883, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-12-a68ee763e4e8>", line 1, in <module>
a.cat.labels
AttributeError: 'CategoricalAccessor' object has no attribute 'labels'
The text was updated successfully, but these errors were encountered:
jankatins
changed the title
categorical accessor (and others) should fail if an unknown attribute is set
categorical accessor (and others?) should fail if an unknown attribute is set
Jul 25, 2015
The text was updated successfully, but these errors were encountered: