-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
remove usages of _get_na_value #19692
Conversation
pandas/core/indexes/base.py
Outdated
@@ -4317,6 +4317,8 @@ def _ensure_index(index_like, copy=False): | |||
|
|||
|
|||
def _get_na_value(dtype): | |||
# TODO: remove; this may require a deprecation cycle because this is | |||
# listed in indexes.api.__all_ |
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.
That's odd that that's the case! After all, the underscore means it should be private...
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.
this is not public and can be removed. the whole pandas.core.index bizness needs to be removed as well.
Codecov Report
@@ Coverage Diff @@
## master #19692 +/- ##
==========================================
+ Coverage 91.58% 91.6% +0.02%
==========================================
Files 150 150
Lines 48864 48862 -2
==========================================
+ Hits 44752 44762 +10
+ Misses 4112 4100 -12
Continue to review full report at Codecov.
|
pandas/core/indexes/base.py
Outdated
@@ -4317,6 +4317,8 @@ def _ensure_index(index_like, copy=False): | |||
|
|||
|
|||
def _get_na_value(dtype): | |||
# TODO: remove; this may require a deprecation cycle because this is | |||
# listed in indexes.api.__all_ |
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.
this is not public and can be removed. the whole pandas.core.index bizness needs to be removed as well.
thanks! |
I think the function might also be incorrectly excluding period_dtype.