xarray.CFTimeIndex.item¶
-
CFTimeIndex.item()¶ 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.
CFTimeIndex.item()¶Return the first element of the underlying data as a Python scalar.
scalar – The first element of %(klass)s.
ValueError – If the data is not length-1.