xarray.core.accessor_str.StringAccessor.islower

xarray.core.accessor_str.StringAccessor.islower#

StringAccessor.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