-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEPR: Add deprecated index attribute names to deprecation list #21125
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
DEPR: Add deprecated index attribute names to deprecation list #21125
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we have a test for exactly this but for Series (and for the main object not accessors)
can u add one here
Not able to locate t. Where its name? |
Codecov Report
@@ Coverage Diff @@
## master #21125 +/- ##
=======================================
Coverage 91.84% 91.84%
=======================================
Files 153 153
Lines 49499 49499
=======================================
Hits 45460 45460
Misses 4039 4039
Continue to review full report at Codecov.
|
I think this is the test @jreback is referring to: pandas/pandas/tests/series/test_api.py Lines 465 to 474 in e033c06
There are also instances of this test (same name) in |
test added. Is the location ok? |
BTW, @jschendel in line 474 in the pandas/pandas/tests/series/test_api.py Lines 472 to 474 in e033c06
I think |
looks ok. can you add a whatsnew note (0.23.1) |
00eb63c
to
93d5f33
Compare
green. |
93d5f33
to
a54b416
Compare
thanks! |
@@ -12,7 +12,8 @@ | |||
|
|||
class DirNamesMixin(object): | |||
_accessors = frozenset([]) | |||
_deprecations = frozenset(['asobject']) | |||
_deprecations = frozenset( | |||
['asobject', 'base', 'data', 'flags', 'itemsize', 'strides']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, this only adds them to Index, not to Series.
So not sure why you did get warnings for Index, but not for Series in the first place.
…s-dev#21125) (cherry picked from commit 0ebbafd)
(cherry picked from commit 0ebbafd)
In ipython, when you press tab (e.g.
idx.<tab>
) a long list of deprecations shows up:With this PR we avoid getting that list of deprecations in iPython.
I'm not sure if/where this should go in the whatsnew document.