Skip to content

Commit

Permalink
hyperlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
KDruzhkin committed May 22, 2024
1 parent 3ef1e00 commit 2b7ede5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py-polars/polars/expr/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -4613,7 +4613,8 @@ def map_elements(
`pl.col("col_name").struct.field("field_name").sqrt()`.
If you want to replace the original column or field,
consider `.with_columns` and `.with_fields`.
consider :meth:`.with_columns <polars.DataFrame.with_columns>`
and :meth:`.with_fields <polars.Expr.struct.with_fields>`.
>>> new_expr = pl.col("col_name").sqrt()
>>> df.with_columns(new_expr)
Expand Down

0 comments on commit 2b7ede5

Please sign in to comment.