We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76a5a4f commit fde8d33Copy full SHA for fde8d33
asv_bench/benchmarks/indexing.py
@@ -3,6 +3,7 @@
3
lower-level methods directly on Index and subclasses, see index_object.py,
4
indexing_engine.py, and index_cached.py
5
"""
6
+import itertools
7
import string
8
import warnings
9
@@ -256,7 +257,9 @@ def setup(self, index):
256
257
"non_monotonic": CategoricalIndex(list("abc" * N)),
258
}
259
self.data = indices[index]
- self.data_unique = CategoricalIndex(list(string.printable))
260
+ self.data_unique = CategoricalIndex(
261
+ ["".join(perm) for perm in itertools.permutations(string.printable, 3)]
262
+ )
263
264
self.int_scalar = 10000
265
self.int_list = list(range(10000))
0 commit comments