Skip to content

Commit 8048f97

Browse files
committed
make pep8 happy
1 parent b8bf14c commit 8048f97

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

asv_bench/benchmarks/hash_functions.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ class IsinWithArange:
1010
1_000,
1111
2_000,
1212
8_000,
13-
], # problem when quadratic behavior is triggered: [100_000, 10_000_000],
13+
],
1414
[-2, 0, 2],
1515
]
1616
param_names = ["dtype", "M", "offset_factor"]
1717

1818
def setup(self, dtype, M, offset_factor):
1919
offset = int(M * offset_factor)
2020
np.random.seed(42)
21-
self.s = pd.Series(np.random.randint(offset, M + offset, 10 ** 6)).astype(dtype)
21+
tmp = pd.Series(np.random.randint(offset, M + offset, 10 ** 6))
22+
self.s = tmp.astype(dtype)
2223
self.values = np.arange(M).astype(dtype)
2324

2425
def time_isin(self, dtype, M, offset_factor):

0 commit comments

Comments
 (0)