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

feat(python): add binary, boolean, categorical, date, object, and time selectors #10806

Merged
merged 4 commits into from
Aug 31, 2023

Conversation

alexander-beedie
Copy link
Collaborator

@alexander-beedie alexander-beedie commented Aug 30, 2023

Extends the available suite of dtype-based selectors with...

  • cs.categorical()
  • cs.date()
  • cs.time()

Update 1:

  • cs.binary()
  • cs.boolean()

Update 2:

  • cs.object()

@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars labels Aug 30, 2023
@alexander-beedie alexander-beedie changed the title feat(python): add missing categorical, date, and time selectors feat(python): add binary, boolean, categorical, date, object, and time selectors Aug 30, 2023
@alexander-beedie
Copy link
Collaborator Author

alexander-beedie commented Aug 30, 2023

TODO: selectors for nested dtypes. Needs some code on the Rust side so we can wildcard-match List, Struct, etc... We'll move more selector code down into Rust anyway (#10594), so that may be a good opportunity to get a two-for-one 🤔

Copy link
Member

@stinodego stinodego left a comment

Choose a reason for hiding this comment

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

Looks clean ✨ thanks!

@stinodego stinodego merged commit f71aef4 into pola-rs:main Aug 31, 2023
13 checks passed
@alexander-beedie alexander-beedie deleted the additional-selectors branch August 31, 2023 16:38
Barsik-sus pushed a commit to Barsik-sus/polars that referenced this pull request Aug 31, 2023
@alexander-beedie alexander-beedie added the A-selectors Area: column selectors label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-selectors Area: column selectors enhancement New feature or an improvement of an existing feature python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants