databricks.koalas.Series.item¶
-
Series.
item
() → Union[int, float, str, bytes, decimal.Decimal, datetime.date, None][source]¶ Return the first element of the underlying data as a Python scalar.
- Returns
- scalar
The first element of Series.
- Raises
- ValueError
If the data is not length-1.
Examples
>>> kser = ks.Series([10]) >>> kser.item() 10