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

Small typo in example in polars.map_groups() #19757

Closed
sn0rkmaiden opened this issue Nov 13, 2024 · 3 comments
Closed

Small typo in example in polars.map_groups() #19757

sn0rkmaiden opened this issue Nov 13, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@sn0rkmaiden
Copy link
Contributor

Description

In the description of example it is said that:

The output for group 1 can be understood as follows:

  • group 1 contains Series 'a': [1, 3] and 'b': [4, 5]

  • applying the function to those lists of Series, one gets the output [1 / 4 + 5, 3 / 4 + 6], i.e. [5.25, 6.75]

But correct values for 'b' list are [5, 6] according to data above and the result.

Link

https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.map_groups.html

@sn0rkmaiden sn0rkmaiden added the documentation Improvements or additions to documentation label Nov 13, 2024
@MarcoGorelli
Copy link
Collaborator

thanks @sn0rkmaiden for the report - are you interested in making a pull request to update it?

sn0rkmaiden added a commit to sn0rkmaiden/polars that referenced this issue Nov 13, 2024
Fixed typo according to issue pola-rs#19757
@sn0rkmaiden
Copy link
Contributor Author

@MarcoGorelli Sure, I've opened a pull request. Could you please check?

@rodrigogiraoserrao
Copy link
Collaborator

Closed by #19769

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
Projects
None yet
Development

No branches or pull requests

3 participants