Skip to content
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

CategoricalAccessor.categorical removed in 0.24.0rc1 #24751 #24754

Conversation

benjaminr
Copy link
Contributor

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see my comments on the issue.

doc/source/whatsnew/v0.24.0.rst Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jan 13, 2019

Codecov Report

Merging #24754 into master will decrease coverage by 49.46%.
The diff coverage is 55.55%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #24754       +/-   ##
===========================================
- Coverage   92.38%   42.91%   -49.47%     
===========================================
  Files         166      166               
  Lines       52363    52370        +7     
===========================================
- Hits        48376    22476    -25900     
- Misses       3987    29894    +25907
Flag Coverage Δ
#multiple ?
#single 42.91% <55.55%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/arrays/categorical.py 41.43% <55.55%> (-54.5%) ⬇️
pandas/io/formats/latex.py 0% <0%> (-100%) ⬇️
pandas/core/categorical.py 0% <0%> (-100%) ⬇️
pandas/io/sas/sas_constants.py 0% <0%> (-100%) ⬇️
pandas/tseries/plotting.py 0% <0%> (-100%) ⬇️
pandas/tseries/converter.py 0% <0%> (-100%) ⬇️
pandas/io/formats/html.py 0% <0%> (-99.35%) ⬇️
pandas/core/groupby/categorical.py 0% <0%> (-95.46%) ⬇️
pandas/io/sas/sas7bdat.py 0% <0%> (-91.17%) ⬇️
pandas/io/sas/sas_xport.py 0% <0%> (-90.15%) ⬇️
... and 124 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f160c7d...4bba94c. Read the comment docs.

@codecov
Copy link

codecov bot commented Jan 13, 2019

Codecov Report

Merging #24754 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24754      +/-   ##
==========================================
+ Coverage   92.38%   92.38%   +<.01%     
==========================================
  Files         166      166              
  Lines       52366    52375       +9     
==========================================
+ Hits        48380    48389       +9     
  Misses       3986     3986
Flag Coverage Δ
#multiple 90.81% <100%> (ø) ⬆️
#single 42.91% <46.15%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/arrays/categorical.py 95.97% <100%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0bd454c...e4bb4c1. Read the comment docs.

@benjaminr
Copy link
Contributor Author

Given @jreback's suggestion that this is unnecessary, I will close this.

@benjaminr benjaminr closed this Jan 13, 2019
@benjaminr benjaminr deleted the depr/CategoricalAccessor-categorical-name-index branch January 13, 2019 22:30
@benjaminr benjaminr restored the depr/CategoricalAccessor-categorical-name-index branch January 14, 2019 18:34
@benjaminr benjaminr reopened this Jan 14, 2019
Copy link
Contributor

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May need to find places where we use .cat.name or .cat.index internally (if any).

doc/source/whatsnew/v0.24.0.rst Outdated Show resolved Hide resolved
pandas/core/arrays/categorical.py Outdated Show resolved Hide resolved
pandas/core/arrays/categorical.py Outdated Show resolved Hide resolved
pandas/core/arrays/categorical.py Outdated Show resolved Hide resolved
pandas/core/arrays/categorical.py Outdated Show resolved Hide resolved
pandas/core/arrays/categorical.py Outdated Show resolved Hide resolved
pandas/core/arrays/categorical.py Outdated Show resolved Hide resolved
pandas/tests/arrays/categorical/test_warnings.py Outdated Show resolved Hide resolved
@TomAugspurger
Copy link
Contributor

You'll also need to update uses of self.index to self._index or self._parent.index. I didn't realize these were public on master. It's probably best make these private as well (as you've done), just have to make sure we don't use the deprecated version internally.

@pep8speaks
Copy link

pep8speaks commented Jan 14, 2019

Hello @benjaminr! Thanks for updating the PR.

Cheers ! There are no PEP8 issues in this Pull Request. 🍻

Comment last updated on January 15, 2019 at 20:23 Hours UTC

@TomAugspurger TomAugspurger added Categorical Categorical Data Type Deprecate Functionality to remove in pandas labels Jan 15, 2019
@TomAugspurger TomAugspurger added this to the 0.24.0 milestone Jan 15, 2019
@TomAugspurger
Copy link
Contributor

TomAugspurger commented Jan 15, 2019 via email

@benjaminr benjaminr force-pushed the depr/CategoricalAccessor-categorical-name-index branch from 961082c to 9a0c381 Compare January 15, 2019 17:50
Copy link
Contributor

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping on green.

@TomAugspurger TomAugspurger merged commit 02b5d9f into pandas-dev:master Jan 15, 2019
@TomAugspurger
Copy link
Contributor

Thanks @benjaminr!

Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
…#24751 (pandas-dev#24754)

* Implementation for CategoricalAccessor.categorical removed in 0.24.0rc1 pandas-dev#24751
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
…#24751 (pandas-dev#24754)

* Implementation for CategoricalAccessor.categorical removed in 0.24.0rc1 pandas-dev#24751
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CategoricalAccessor.categorical removed in 0.24.0rc1
4 participants