File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,10 @@ jobs:
7474 asv check -E existing
7575 git remote add upstream https://github.com/pandas-dev/pandas.git
7676 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
8581 fi
8682 if : always()
8783
Original file line number Diff line number Diff line change 33lower-level methods directly on Index and subclasses, see index_object.py,
44indexing_engine.py, and index_cached.py
55"""
6+ import string
67import warnings
78
89import numpy as np
@@ -255,6 +256,7 @@ def setup(self, index):
255256 "non_monotonic" : CategoricalIndex (list ("abc" * N )),
256257 }
257258 self .data = indices [index ]
259+ self .data_unique = CategoricalIndex (list (string .printable ))
258260
259261 self .int_scalar = 10000
260262 self .int_list = list (range (10000 ))
@@ -281,7 +283,7 @@ def time_get_loc_scalar(self, index):
281283 self .data .get_loc (self .cat_scalar )
282284
283285 def time_get_indexer_list (self , index ):
284- self .data .get_indexer (self .cat_list )
286+ self .data_unique .get_indexer (self .cat_list )
285287
286288
287289class MethodLookup :
You can’t perform that action at this time.
0 commit comments