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.