@@ -1037,7 +1037,7 @@ def _set_values(self, key, value):
1037
1037
self ._data = self ._data .setitem (indexer = key , value = value )
1038
1038
self ._maybe_update_cacher ()
1039
1039
1040
- def repeat (self , repeats , * args , ** kwargs ):
1040
+ def repeat (self , repeats , axis = None ):
1041
1041
"""
1042
1042
Repeat elements of a Series.
1043
1043
@@ -1050,12 +1050,9 @@ def repeat(self, repeats, *args, **kwargs):
1050
1050
The number of repetitions for each element. This should be a
1051
1051
non-negative integer. Repeating 0 times will return an empty
1052
1052
Series.
1053
- *args
1054
- Additional arguments have no effect but might be accepted for
1055
- compatibility with numpy.
1056
- **kwargs
1057
- Additional keywords have no effect but might be accepted for
1058
- compatibility with numpy.
1053
+ axis : None
1054
+ Must be ``None``. Has no effect but is accepted for compatibility
1055
+ with numpy.
1059
1056
1060
1057
Returns
1061
1058
-------
@@ -1092,7 +1089,7 @@ def repeat(self, repeats, *args, **kwargs):
1092
1089
2 c
1093
1090
dtype: object
1094
1091
"""
1095
- nv .validate_repeat (args , kwargs )
1092
+ nv .validate_repeat (tuple (), dict ( axis = axis ) )
1096
1093
new_index = self .index .repeat (repeats )
1097
1094
new_values = self ._values .repeat (repeats )
1098
1095
return self ._constructor (new_values ,
0 commit comments