pandas.Index.item — pandas 1.0.1 documentation (original) (raw)
Return the first element of the underlying data as a python scalar.
Returns
scalar
The first element of %(klass)s.
Raises
ValueError
If the data is not length-1.
Return the first element of the underlying data as a python scalar.
Returns
scalar
The first element of %(klass)s.
Raises
ValueError
If the data is not length-1.