xarray.DataArray.str.len

DataArray.str.len()

Compute the length of each string in the array.

Returns

lengths array (array of int)