Skip to content

Commit 3a60d1f

Browse files
simonjayhawkinsmeeseeksmachine
authored andcommitted
Backport PR pandas-dev#39795: fix benchmark failure with numpy 1.20+
1 parent ec92c33 commit 3a60d1f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

asv_bench/benchmarks/series_methods.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import numpy as np
44

5+
from pandas.compat.numpy import np_version_under1p20
6+
57
from pandas import Categorical, NaT, Series, date_range
68

79
from .pandas_vb_common import tm
@@ -122,6 +124,10 @@ class IsInLongSeriesLookUpDominates:
122124

123125
def setup(self, dtype, MaxNumber, series_type):
124126
N = 10 ** 7
127+
128+
if not np_version_under1p20 and dtype in ("Int64", "Float64"):
129+
raise NotImplementedError
130+
125131
if series_type == "random_hits":
126132
np.random.seed(42)
127133
array = np.random.randint(0, MaxNumber, N)

0 commit comments

Comments
 (0)