pandas / 0.25.0 / reference / api / pandas.index.item.html /

pandas.Index.item

Index.item(self) [source]

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

Returns:
scalar

The first element of %(klass)s.

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Index.item.html