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): Improve docstrings rolling functions #9215

Merged
merged 6 commits into from
Jun 19, 2023

Conversation

zundertj
Copy link
Collaborator

@zundertj zundertj commented Jun 4, 2023

The closed argument is only used if by is set. In this PR we update the docstrings to reflect that, as well as put the default behaviour for how the time window behaves, i.e. when by is not set, first in the docstring.

@github-actions github-actions bot added python Related to Python Polars refactor Code improvements that do not change functionality labels Jun 4, 2023
@zundertj zundertj changed the title refactor(python): Issue warning on not passing in closed="left" in ro… refactor(python): Issue warning closed="left" in rolling functions Jun 4, 2023
@zundertj zundertj force-pushed the rolling_closed_right branch from c903446 to 3f39ca4 Compare June 4, 2023 19:30
@zundertj zundertj changed the title refactor(python): Issue warning closed="left" in rolling functions docs(python): Improve docstrings rolling functions Jun 4, 2023
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jun 4, 2023
@zundertj zundertj marked this pull request as ready for review June 4, 2023 19:33
Copy link
Collaborator

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

Nice one!

py-polars/polars/expr/expr.py Outdated Show resolved Hide resolved
@zundertj zundertj force-pushed the rolling_closed_right branch from 5a82720 to e3227ea Compare June 17, 2023 13:06
@zundertj
Copy link
Collaborator Author

Sorry for the delay, have been on hols.

That wording is better indeed, fixed.

py-polars/polars/expr/expr.py Outdated Show resolved Hide resolved
@zundertj zundertj requested a review from MarcoGorelli June 18, 2023 14:18
py-polars/polars/expr/expr.py Outdated Show resolved Hide resolved
@zundertj zundertj requested a review from MarcoGorelli June 19, 2023 18:36
Copy link
Collaborator

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

Nice one, thanks @zundertj !

@MarcoGorelli MarcoGorelli merged commit b1452a7 into pola-rs:main Jun 19, 2023
c-peters pushed a commit to c-peters/polars that referenced this pull request Jul 14, 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 refactor Code improvements that do not change functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants