Skip to content

Commit 8b80562

Browse files
committed
asv compat for py3
1 parent e544362 commit 8b80562

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

asv_bench/benchmarks/inference.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ class to_numeric(object):
148148
N = 500000
149149

150150
data_dict = {
151-
'string-int': (['1'] * (N / 2)) + ([2] * (N / 2)),
152-
'string-nint': (['-1'] * (N / 2)) + ([2] * (N / 2)),
151+
'string-int': (['1'] * (N // 2)) + ([2] * (N // 2)),
152+
'string-nint': (['-1'] * (N // 2)) + ([2] * (N // 2)),
153153
'datetime64': np.repeat(np.array(['1970-01-01', '1970-01-02'],
154154
dtype='datetime64[D]'), N),
155-
'string-float': (['1.1'] * (N / 2)) + ([2] * (N / 2)),
156-
'int-list': ([1] * (N / 2)) + ([2] * (N / 2)),
155+
'string-float': (['1.1'] * (N // 2)) + ([2] * (N // 2)),
156+
'int-list': ([1] * (N // 2)) + ([2] * (N // 2)),
157157
'int32': np.repeat(np.int32(1), N)
158158
}
159159

0 commit comments

Comments
 (0)