Convert strings in the array to lowercase. Returns ------- lowered : same type as values Examples -------- >>> da = xr.DataArray(["Temperature", "PRESSURE"], dims="x") >>> da Size: 88B array(
(self)
| 696 | return self._apply(func=lambda x: x.capitalize()) |
| 697 | |
| 698 | def lower(self) -> T_DataArray: |
| 699 | """ |
| 700 | Convert strings in the array to lowercase. |
| 701 | |
| 702 | Returns |
| 703 | ------- |
| 704 | lowered : same type as values |
| 705 | |
| 706 | Examples |
| 707 | -------- |
| 708 | >>> da = xr.DataArray(["Temperature", "PRESSURE"], dims="x") |
| 709 | >>> da |
| 710 | <xarray.DataArray (x: 2)> Size: 88B |
| 711 | array(['Temperature', 'PRESSURE'], dtype='<U11') |
| 712 | Dimensions without coordinates: x |
| 713 | >>> lowered = da.str.lower() |
| 714 | >>> lowered |
| 715 | <xarray.DataArray (x: 2)> Size: 88B |
| 716 | array(['temperature', 'pressure'], dtype='<U11') |
| 717 | Dimensions without coordinates: x |
| 718 | """ |
| 719 | return self._apply(func=lambda x: x.lower()) |
| 720 | |
| 721 | def swapcase(self) -> T_DataArray: |
| 722 | """ |