New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

Projects
None yet
3 participants
@jankatins
Contributor

jankatins 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'

@jankatins jankatins 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 jreback added this to the 0.17.1 milestone Nov 13, 2015

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