File tree 2 files changed +7
-9
lines changed
2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,10 @@ jobs:
74
74
asv check -E existing
75
75
git remote add upstream https://github.com/pandas-dev/pandas.git
76
76
git fetch upstream
77
- if git diff upstream/master --name-only | grep -q "^asv_bench/"; then
78
- asv machine --yes
79
- asv dev | sed "/failed$/ s/^/##[error]/" | tee benchmarks.log
80
- if grep "failed" benchmarks.log > /dev/null ; then
81
- exit 1
82
- fi
83
- else
84
- echo "Benchmarks did not run, no changes detected"
77
+ asv machine --yes
78
+ asv dev | sed "/failed$/ s/^/##[error]/" | tee benchmarks.log
79
+ if grep "failed" benchmarks.log > /dev/null ; then
80
+ exit 1
85
81
fi
86
82
if : always()
87
83
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 string
6
7
import warnings
7
8
8
9
import numpy as np
@@ -255,6 +256,7 @@ def setup(self, index):
255
256
"non_monotonic" : CategoricalIndex (list ("abc" * N )),
256
257
}
257
258
self .data = indices [index ]
259
+ self .data_unique = CategoricalIndex (list (string .printable ))
258
260
259
261
self .int_scalar = 10000
260
262
self .int_list = list (range (10000 ))
@@ -281,7 +283,7 @@ def time_get_loc_scalar(self, index):
281
283
self .data .get_loc (self .cat_scalar )
282
284
283
285
def time_get_indexer_list (self , index ):
284
- self .data .get_indexer (self .cat_list )
286
+ self .data_unique .get_indexer (self .cat_list )
285
287
286
288
287
289
class MethodLookup :
You can’t perform that action at this time.
0 commit comments