🍾 Xarray is now 10 years old! 🎉

xarray.DataArray.str.islower

xarray.DataArray.str.islower#

DataArray.str.islower()[source]#

Check whether all characters in each string are lowercase.

Returns:

islower (array of bool) – Array of boolean values with the same shape as the original array indicating whether all characters of each element of the string array are lowercase (True) or not (False).

Examples

>>> da = xr.DataArray(["temperature", "HUMIDITY", "pREciPiTaTioN"], dims="x")
>>> da
<xarray.DataArray (x: 3)> Size: 156B
array(['temperature', 'HUMIDITY', 'pREciPiTaTioN'], dtype='<U13')
Dimensions without coordinates: x
>>> islower = da.str.islower()
>>> islower
<xarray.DataArray (x: 3)> Size: 3B
array([ True, False, False])
Dimensions without coordinates: x