You are viewing documentation about an older version (1.21.0). View latest version

modin.pandas.Index.item¶

Index.item() → Hashable[source]¶

Return the first element of the underlying data as a Python scalar.

Returns:

The first element of Series or Index.

Return type:

scalar

Raises:

ValueError – If the data is not length = 1.