polars.Series.take#

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

Take values by index.

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

Parameters:
indices

Index location used for selection.