[ Web Proxy ]
URL:
Viewing: https://dataframes.bigquery.dev/reference/api/bigframes.pandas.Index.item.html [Back]  [Original]

bigframes.pandas.Index.item — bigframes documentation
Back to top
Search the docs ...:

bigframes.pandas.Index.item#

Index.item()[source]#

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

Examples:

>>> s = bpd.Series([1], index=['a'])
>>> s.index.item()
'a'
Returns:

The first element of Index.

Return type:

scalar

Raises:

ValueError If the data is not length = 1.


Web Proxy Viewer  |  New URL  |  Original Page