File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -5451,15 +5451,13 @@ def duplicated(
5451
5451
4 True
5452
5452
dtype: bool
5453
5453
"""
5454
- from pandas ._libs .hashtable import SIZE_HINT_LIMIT , duplicated_int64
5454
+ from pandas ._libs .hashtable import duplicated_int64
5455
5455
5456
5456
if self .empty :
5457
5457
return self ._constructor_sliced (dtype = bool )
5458
5458
5459
5459
def f (vals ):
5460
- labels , shape = algorithms .factorize (
5461
- vals , size_hint = min (len (self ), SIZE_HINT_LIMIT )
5462
- )
5460
+ labels , shape = algorithms .factorize (vals , size_hint = len (self ))
5463
5461
return labels .astype ("i8" , copy = False ), len (shape )
5464
5462
5465
5463
if subset is None :
Original file line number Diff line number Diff line change @@ -593,7 +593,7 @@ def compress_group_index(group_index, sort: bool = True):
593
593
space can be huge, so this function compresses it, by computing offsets
594
594
(comp_ids) into the list of unique labels (obs_group_ids).
595
595
"""
596
- size_hint = min ( len (group_index ), hashtable . SIZE_HINT_LIMIT )
596
+ size_hint = len (group_index )
597
597
table = hashtable .Int64HashTable (size_hint )
598
598
599
599
group_index = ensure_int64 (group_index )
You can’t perform that action at this time.
0 commit comments