From a479f1146eacf8f767636fd856704ee3c0e1ef66 Mon Sep 17 00:00:00 2001 From: Henry Harbeck Date: Fri, 16 Aug 2024 16:30:32 +1000 Subject: [PATCH] fix example --- py-polars/polars/dataframe/frame.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/py-polars/polars/dataframe/frame.py b/py-polars/polars/dataframe/frame.py index db1cf9b36482..fe0570ab4090 100644 --- a/py-polars/polars/dataframe/frame.py +++ b/py-polars/polars/dataframe/frame.py @@ -7003,17 +7003,17 @@ def map_rows( Return a DataFrame with a single column by mapping each row to a scalar: - >>> df.map_rows(lambda t: (t[0] * 2 + t[1])) # doctest: +SKIP + >>> df.map_rows(lambda t: (t[0] * 2 + t[1])) shape: (3, 1) - ┌───────┐ - │ apply │ - │ --- │ - │ i64 │ - ╞═══════╡ - │ 1 │ - │ 9 │ - │ 14 │ - └───────┘ + ┌─────┐ + │ map │ + │ --- │ + │ i64 │ + ╞═════╡ + │ 1 │ + │ 9 │ + │ 14 │ + └─────┘ In this case it is better to use the following native expression: