xarray.DataArray.str.repeat

DataArray.str.repeat(repeats)

Duplicate each string in the array.

Parameters

repeats (int) – Number of repetitions.

Returns

repeated (same type as values) – Array of repeated string objects.