From 2e5f5c871f324264f175cbf52cf3dc8909645fd8 Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Thu, 6 Jun 2024 16:00:26 +0100 Subject: [PATCH] lint --- docs/user-guide/expressions/user-defined-functions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/user-guide/expressions/user-defined-functions.md b/docs/user-guide/expressions/user-defined-functions.md index 5c018e9fe88c..dc994148c63b 100644 --- a/docs/user-guide/expressions/user-defined-functions.md +++ b/docs/user-guide/expressions/user-defined-functions.md @@ -119,10 +119,10 @@ Passing the full `Series` to the user-defined function has a cost: it may use a You can use the `is_elementwise=True` argument to [:material-api: `map_batches`](https://docs.pola.rs/py-polars/html/reference/expressions/api/polars.Expr.map_batches.html) to stream results into the function, which means it might not get all values at once. !!! note - The `is_elementwise` argument can lead to incorrect results if set incorrectly. - If you set `is_elementwise=True`, make sure that your function actually operates - element-by-element (e.g. "calculate the logarithm of each value") - our example function `diff_from_mean()`, - for instance, does not. +The `is_elementwise` argument can lead to incorrect results if set incorrectly. +If you set `is_elementwise=True`, make sure that your function actually operates +element-by-element (e.g. "calculate the logarithm of each value") - our example function `diff_from_mean()`, +for instance, does not. ## Return types