pandas.Index.item

pandas 3.1.1 · Index objects · method

Extract a scalar. For a Series, Index or array, the default extraction requires exactly one element.

Call syntax

Index.item()

Run the example

Edit the example and select Run Python to see the result.

Parameters

This call takes no arguments.

Returns

scalar