xarray.DataArray.str.title

DataArray.str.title()

Convert strings in the array to titlecase.

Returns

titled (same type as values)