xarray.DataArray.str.len

DataArray.str.len()[source]

Compute the length of each string in the array.

Returns

lengths array (array of int)