pandas.api.extensions.ExtensionArray.item
pandas 3.1.1 · Extensions · method
Extract the value at index as a Python scalar. Without index, the array must contain exactly one value.
Call syntax
pd.api.extensions.ExtensionArray.item(index=None)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
index |
Optional Positional or keyword Default None |
int Supply row labels or control how existing row labels are used. |
Returns
scalar