From a8905c9e3f9e8844fd40c916618b6c042a82cc5c Mon Sep 17 00:00:00 2001 From: Licht-T Date: Mon, 25 Sep 2017 01:36:45 +0900 Subject: [PATCH] TST: Fix repeat parameter overwritten the sparse asv test --- asv_bench/benchmarks/sparse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asv_bench/benchmarks/sparse.py b/asv_bench/benchmarks/sparse.py index 7259e8cdb7d61..b958f5e0e5c34 100644 --- a/asv_bench/benchmarks/sparse.py +++ b/asv_bench/benchmarks/sparse.py @@ -1,4 +1,4 @@ -from itertools import repeat +import itertools from .pandas_vb_common import * import scipy.sparse @@ -33,7 +33,7 @@ def time_sparse_from_scipy(self): SparseDataFrame(scipy.sparse.rand(1000, 1000, 0.005)) def time_sparse_from_dict(self): - SparseDataFrame(dict(zip(range(1000), repeat([0])))) + SparseDataFrame(dict(zip(range(1000), itertools.repeat([0])))) class sparse_series_from_coo(object):