-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat(python): Add DataType.is_integer
and other dtype groups
#12200
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
enhancement
New feature or an improvement of an existing feature
python
Related to Python Polars
labels
Nov 2, 2023
stinodego
requested review from
ritchie46,
alexander-beedie and
MarcoGorelli
as code owners
November 2, 2023 14:34
stinodego
changed the title
feat(python): Add
feat(python): Add Nov 2, 2023
DataType.is_integer/float/temporal
DataType.is_integer
and other dtype groups
stinodego
force-pushed
the
is-dtype-methods
branch
from
November 3, 2023 08:09
e273476
to
d70ea5d
Compare
stinodego
added
the
deprecation
Add a deprecation warning to outdated functionality
label
Nov 3, 2023
Gets my vote (consolidating these methods on |
stinodego
force-pushed
the
is-dtype-methods
branch
from
November 7, 2023 09:46
d70ea5d
to
988be07
Compare
stinodego
force-pushed
the
is-dtype-methods
branch
from
November 14, 2023 09:37
988be07
to
b08ea35
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
deprecation
Add a deprecation warning to outdated functionality
enhancement
New feature or an improvement of an existing feature
python
Related to Python Polars
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Partially addresses #12196
This includes the "dtype group" methods on
DataType
:is_numeric
is_integer
is_signed_integer
is_unsigned_integer
is_float
is_temporal
(
is_nested
cannot be added right now - I will add it as a breaking change in the next breaking release)This PR also deprecates the similar methods on
Series
. Users should call theSeries.dtype
and then call the new methods instead.This illustrates the syntax and implementation. For our internal use, you can see it has the additional benefit of not having to import the dtype groups everywhere.