-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DEPR: Enforce deprecation of na_sentinel #49402
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: Enforce deprecation of na_sentinel #49402
Conversation
|
…rce_depr_na_sentinel
Co-authored-by: Matthew Roeschke <[email protected]>
…ach/pandas into enforce_depr_na_sentinel
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.
Nice cleanup. LGTM
@rhshadrach heads up - there's a merge conflict |
…rce_depr_na_sentinel � Conflicts: � doc/source/whatsnew/v2.0.0.rst
Thanks @mroeschke, it's now resolved. |
circleCI failure looks like its the float->dt64 astype issue, i.e. unrelated |
pandas/core/algorithms.py
Outdated
# We've already warned above | ||
warnings.filterwarnings("ignore", ".*use_na_sentinel.*", FutureWarning) | ||
codes, uniques = values.factorize(na_sentinel=na_sentinel_arg) | ||
# GH#46910 - TimelikeOps has deprecated signature |
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.
is it not deprecated there too?
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.
Thanks, missed this one. The deprecation of TimelikeOps signature is taken care of here (in datetimelike.py), just the comment got left behind.
@@ -454,24 +450,6 @@ def __ne__(self, other: Any) -> ArrayLike: # type: ignore[override] | |||
""" | |||
return ~(self == other) | |||
|
|||
def __init_subclass__(cls, **kwargs) -> None: |
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.
wow didn't realize we had done this. will be nice to see this go
…ach/pandas into enforce_depr_na_sentinel
…rce_depr_na_sentinel
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.
Looks good! This is indeed nice to see go ;)
@rhshadrach looks like there's a merge conflict; otherwise, looks good to merge |
…rce_depr_na_sentinel � Conflicts: � doc/source/whatsnew/v2.0.0.rst
Thanks @rhshadrach |
* DEPR: Enforce deprecation of na_sentinel * Fixups * Fix docstring * Update doc/source/whatsnew/v2.0.0.rst Co-authored-by: Matthew Roeschke <[email protected]> * Remove comment Co-authored-by: Matthew Roeschke <[email protected]>
* DEPR: Enforce deprecation of na_sentinel * Fixups * Fix docstring * Update doc/source/whatsnew/v2.0.0.rst Co-authored-by: Matthew Roeschke <[email protected]> * Remove comment Co-authored-by: Matthew Roeschke <[email protected]>
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.cc @jbrockmendel @jorisvandenbossche