Skip to content
3 changes: 2 additions & 1 deletion pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,8 @@ def memory_usage(self, deep=False):
# ops compat
@deprecate_kwarg(old_arg_name='n', new_arg_name='repeats')
def repeat(self, repeats, *args, **kwargs):
"""Repeat elements of an Index.
"""
Repeat elements of an Index.

Returns a new index where each element of the current index
is repeated consecutively a given number of times.
Expand Down