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

docs(python): simplify/clarify group_by_dynamic examples #11335

Merged
merged 3 commits into from
Sep 27, 2023

Conversation

MarcoGorelli
Copy link
Collaborator

To be honest I think the current examples are bit too complicated - they can be simplified to (hopefully better) get the point across

The rows are already kind of numbered by 'n', by just aggregating by pl.col('n') it becomes clear which row belongs to which window

And it's now easier to read without datetimes all of the place

@github-actions github-actions bot added documentation Improvements or additions to documentation python Related to Python Polars labels Sep 26, 2023
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.

Much better! Just one minor comment on formatting.

py-polars/polars/lazyframe/frame.py Outdated Show resolved Hide resolved
@MarcoGorelli MarcoGorelli marked this pull request as ready for review September 27, 2023 09:09
@ritchie46 ritchie46 merged commit d016d4d into pola-rs:main Sep 27, 2023
12 checks passed
romanovacca pushed a commit to romanovacca/polars that referenced this pull request Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants