# xarray.DataArray.str.len

#### DataArray.str.len()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/accessor_str.py#L294-L302)

Compute the length of each string in the array.

* **Returns:**
  **lengths array** ([array](https://numpy.org/doc/stable/glossary.html#term-array) of [`int`](https://docs.python.org/3/builtins/functions.html#int))
