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

depr(python,rust!): Rename pl.count() to pl.len() #13719

Merged
merged 4 commits into from
Jan 16, 2024
Merged

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented Jan 14, 2024

Closes #13673

Changes

  • Rename pl.count() to pl.len()
  • Rename group_by(...).count() to group_by(...).len()
  • Rename pivot aggregate function "count" to "len"
  • Deprecate pl.cum_count() (with no args). The name makes no sense anymore and it was just an alias for int_range anyway.

@github-actions github-actions bot added breaking rust Change that breaks backwards compatibility for the Rust crate deprecation Add a deprecation warning to outdated functionality python Related to Python Polars rust Related to Rust Polars labels Jan 14, 2024
@stinodego stinodego force-pushed the count-to-len branch 2 times, most recently from 8b1b900 to 6924a99 Compare January 14, 2024 14:55
@ritchie46 ritchie46 merged commit 44a469c into main Jan 16, 2024
26 checks passed
@ritchie46 ritchie46 deleted the count-to-len branch January 16, 2024 15:35
alexander-beedie pushed a commit to alexander-beedie/polars that referenced this pull request Jan 16, 2024
r-brink pushed a commit to r-brink/polars that referenced this pull request Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking rust Change that breaks backwards compatibility for the Rust crate deprecation Add a deprecation warning to outdated functionality python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename argument-less pl.count() to pl.len()
2 participants