Skip to content

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

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

Closed
jankatins opened this issue Jul 25, 2015 · 0 comments
Closed
Labels
API Design Categorical Categorical Data Type
Milestone

Comments

@jankatins
Copy link
Contributor

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 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
@sinhrks sinhrks added API Design Categorical Categorical Data Type labels Jul 28, 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
Labels
API Design Categorical Categorical Data Type
Projects
None yet
Development

No branches or pull requests

3 participants