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: Update pivot docstring for clarity #18000

Merged
merged 3 commits into from
Aug 5, 2024

Conversation

deanm0000
Copy link
Collaborator

addresses #17967

@github-actions github-actions bot added documentation Improvements or additions to documentation python Related to Python Polars rust Related to Rust Polars labels Aug 1, 2024
One or multiple keys to group by. If None, all remaining columns not specified
on `on` and `values` will be used. At least one of `index` and `values` must
be specified.
One or multiple columns to group by. These are the columns which will remain from the input
Copy link
Contributor

Choose a reason for hiding this comment

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

How about "The unique combinations of values from the index columns form the output rows"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I adapted from your suggestion but didn't take it exactly. I don't like saying it "form"s the output rows because it takes both the index and the values to form the output rows so I don't know if that might be confusing for someone. I did incorporate the unique combination making up the rows though.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah I agree with that, thanks! Pivot explanations are so darn hard to word...

Copy link

codecov bot commented Aug 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.52%. Comparing base (316d621) to head (1937767).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #18000      +/-   ##
==========================================
+ Coverage   80.48%   80.52%   +0.03%     
==========================================
  Files        1496     1496              
  Lines      196646   196728      +82     
  Branches     2817     2817              
==========================================
+ Hits       158274   158411     +137     
+ Misses      37851    37796      -55     
  Partials      521      521              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@ritchie46 ritchie46 left a comment

Choose a reason for hiding this comment

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

Thanks!

@ritchie46 ritchie46 merged commit 06e4fa4 into pola-rs:main Aug 5, 2024
14 checks passed
@deanm0000 deanm0000 deleted the pivot-docstring branch August 26, 2024 14:01
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 rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants