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 low
(self)
| 948 | return self._apply(func=lambda x: x.isdigit(), dtype=bool) |
| 949 | |
| 950 | def islower(self) -> T_DataArray: |
| 951 | """ |
| 952 | Check whether all characters in each string are lowercase. |
| 953 | |
| 954 | Returns |
| 955 | ------- |
| 956 | islower : array of bool |
| 957 | Array of boolean values with the same shape as the original array indicating whether all characters of each |
| 958 | element of the string array are lowercase (True) or not (False). |
| 959 | |
| 960 | Examples |
| 961 | -------- |
| 962 | >>> da = xr.DataArray(["temperature", "HUMIDITY", "pREciPiTaTioN"], dims="x") |
| 963 | >>> da |
| 964 | <xarray.DataArray (x: 3)> Size: 156B |
| 965 | array(['temperature', 'HUMIDITY', 'pREciPiTaTioN'], dtype='<U13') |
| 966 | Dimensions without coordinates: x |
| 967 | >>> islower = da.str.islower() |
| 968 | >>> islower |
| 969 | <xarray.DataArray (x: 3)> Size: 3B |
| 970 | array([ True, False, False]) |
| 971 | Dimensions without coordinates: x |
| 972 | """ |
| 973 | return self._apply(func=lambda x: x.islower(), dtype=bool) |
| 974 | |
| 975 | def isnumeric(self) -> T_DataArray: |
| 976 | """ |