bigframes.pandas.Series.take#

Series.take(indices: Sequence[int], axis: int | str | None = 0, **kwargs) Series[source]#

Return the elements in the given positional indices along an axis.

This means that we are not indexing according to actual values in the index attribute of the object. We are indexing according to the actual position of the element in the object.

Parameters:
  • indices (list-like) – An array of ints indicating which positions to take.

  • axis ({0 or 'index', 1 or 'columns', None}, default 0) – The axis on which to select elements. 0 means that we are selecting rows, 1 means that we are selecting columns. For Series this parameter is unused and defaults to 0.

  • **kwargs – For compatibility with numpy.take(). Has no effect on the output.

Returns:

Same type as input object.

Return type:

bigframes.pandas.DataFrame or bigframes.pandas.Series