Table Of Contents

Search

Enter search terms or a module, class or function name.

pandas.Series.str.repeat

Series.str.repeat(repeats)[source]

Duplicate each string in the Series/Index by indicated number of times.

Parameters:

repeats : int or array

Same value for all (int) or different value per (array)

Returns:

repeated : Series/Index of objects

Scroll To Top