pandas.DataFrame.take
pandas 3.1.1 · DataFrame · method
Select values by integer position in the order supplied.
Call syntax
DataFrame.take(indices, axis=0, **kwargs)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
indices |
Required Positional or keyword |
array-like Supply the integer positions selected from the input. |
axis |
Optional Positional or keyword Default 0 |
{0 or 'index', 1 or 'columns'} Choose which axis the operation acts on. The accepted axis labels depend on the receiver. |
**kwargs |
Optional Additional keyword arguments |
Returns
same type as caller