@@ -39,7 +39,7 @@ def allow_na_ops(obj: Any) -> bool:
39
39
return not is_bool_index and obj ._can_hold_na
40
40
41
41
42
- def multiply_values (obj ):
42
+ def repeat_values (obj ):
43
43
"""
44
44
Repeat values so that the previous values are ordered (increasing)
45
45
by number of occurrences
@@ -223,7 +223,7 @@ def test_ndarray_compat_properties(self, index_or_series_obj):
223
223
assert Series ([1 ]).item () == 1
224
224
225
225
def test_unique (self , index_or_series_obj ):
226
- obj = multiply_values (index_or_series_obj )
226
+ obj = repeat_values (index_or_series_obj )
227
227
result = obj .unique ()
228
228
229
229
# dict.fromkeys preserves the order
@@ -242,12 +242,12 @@ def test_unique(self, index_or_series_obj):
242
242
tm .assert_numpy_array_equal (result , expected )
243
243
244
244
def test_nunique (self , index_or_series_obj ):
245
- obj = multiply_values (index_or_series_obj )
245
+ obj = repeat_values (index_or_series_obj )
246
246
result = obj .nunique (dropna = False )
247
247
assert result == len (obj .unique ())
248
248
249
249
def test_value_counts (self , index_or_series_obj ):
250
- obj = multiply_values (index_or_series_obj )
250
+ obj = repeat_values (index_or_series_obj )
251
251
result = obj .value_counts ()
252
252
253
253
counter = collections .Counter (obj )
0 commit comments