polars.Expr.take#

Expr.take(indices: int | list[int] | Expr | Series | np.ndarray[Any, Any]) Self[source]#

Take values by index.

Deprecated since version 0.19.14: This method has been renamed to gather().

Parameters:
indices

An expression that leads to a UInt32 dtyped Series.