categorical accessor (and others?) should fail if an unknown attribute is set #10673

Closed
janschulz opened this Issue Jul 25, 2015 · 0 comments

Comments

Projects
None yet
3 participants
Contributor

janschulz commented Jul 25, 2015

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'

janschulz changed the title from categorical accessor (and others) should fail if an unknown attribute is set to categorical accessor (and others?) should fail if an unknown attribute is set Jul 25, 2015

jreback added this to the 0.17.1 milestone Nov 13, 2015

jreback closed this in #11575 Nov 14, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment