xorbits.pandas.Index.item#

Index.item()#

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

Returns

The first element of %(klass)s.

Return type

scalar

Raises

ValueError – If the data is not length-1.

Warning

This method has not been implemented yet. Xorbits will try to execute it with pandas.

This docstring was copied from pandas.core.indexes.base.Index.