xarray.core.accessor_str.StringAccessor.repeat

StringAccessor.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.