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

DataFrame.map_rows mentions apply #15945

Closed
david-waterworth opened this issue Apr 29, 2024 · 0 comments · Fixed by #15982
Closed

DataFrame.map_rows mentions apply #15945

david-waterworth opened this issue Apr 29, 2024 · 0 comments · Fixed by #15982
Labels
documentation Improvements or additions to documentation

Comments

@david-waterworth
Copy link

Description

The documentation for polars.DataFrame.map_rows mentions applies multiple times. I assume this is because map_rows used to be called applies i.e.

The frame-level **apply** cannot track column names (as the UDF is a black-box that may arbitrarily drop, rearrange, transform, or add new columns); if you want to apply a UDF such that column names are preserved, you should use the expression-level **apply** syntax instead.

Link

https://docs.pola.rs/py-polars/html/reference/dataframe/api/polars.DataFrame.map_rows.html

@david-waterworth david-waterworth added the documentation Improvements or additions to documentation label Apr 29, 2024
avimallu added a commit to avimallu/polars that referenced this issue May 1, 2024
Removed the reference to `apply` as indicated in pola-rs#15945 and replaced with `map_rows` or `map_elements` as appropriate.
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

Successfully merging a pull request may close this issue.

1 participant