# xarray.DataArray.str.repeat

#### DataArray.str.repeat(repeats)[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/accessor_str.py#L1692-L1714)

Repeat each string in the array.

If repeats is array-like, it is broadcast against the array and applied
elementwise.

* **Parameters:**
  **repeats** ([`int`](https://docs.python.org/3/builtins/functions.html#int) or [array-like](https://numpy.org/doc/stable/glossary.html#term-array_like) of [`int`](https://docs.python.org/3/builtins/functions.html#int)) – Number of repetitions.
  If array-like, it is broadcast.
* **Returns:**
  **repeated** (`same type as values`) – Array of repeated string objects.
