File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 3
3
lower-level methods directly on Index and subclasses, see index_object.py,
4
4
indexing_engine.py, and index_cached.py
5
5
"""
6
- import itertools
7
- import string
8
6
import warnings
9
7
10
8
import numpy as np
@@ -353,15 +351,13 @@ def setup(self, index):
353
351
"non_monotonic" : CategoricalIndex (list ("abc" * N )),
354
352
}
355
353
self .data = indices [index ]
356
- self .data_unique = CategoricalIndex (
357
- ["" .join (perm ) for perm in itertools .permutations (string .printable , 3 )]
358
- )
354
+ self .data_unique = CategoricalIndex ([str (i ) for i in range (N * 3 )])
359
355
360
356
self .int_scalar = 10000
361
357
self .int_list = list (range (10000 ))
362
358
363
359
self .cat_scalar = "b"
364
- self .cat_list = ["a " , "c " ]
360
+ self .cat_list = ["1 " , "3 " ]
365
361
366
362
def time_getitem_scalar (self , index ):
367
363
self .data [self .int_scalar ]
You can’t perform that action at this time.
0 commit comments