Skip to content

Commit

Permalink
docs(python): Update reference to apply (#15982)
Browse files Browse the repository at this point in the history
  • Loading branch information
avimallu committed May 3, 2024
1 parent 222216a commit a3efd8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions py-polars/polars/dataframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -6199,10 +6199,10 @@ def map_rows(
Notes
-----
* 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.
* The frame-level `map_rows` 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 `map_elements` syntax instead.
* If your function is expensive and you don't want it to be called more than
once for a given input, consider applying an `@lru_cache` decorator to it.
Expand Down

0 comments on commit a3efd8c

Please sign in to comment.