- function: Callable[[Any], Any],
- return_dtype: PolarsDataType | None = None,
- skip_nulls: bool = True,
Apply a custom/user-defined function (UDF) over elements in this Series.
Deprecated since version 0.19.0: This method has been renamed to
Custom function or lambda.
Output datatype. If none is given, the same datatype as this Series will be used.
Nulls will be skipped and not passed to the python function. This is faster because python can be skipped and because we call more specialized functions.