Skip to content

Commit

Permalink
TST: Fix repeat parameter overwritten the sparse asv test (#17659)
Browse files Browse the repository at this point in the history
  • Loading branch information
Licht-T authored and jreback committed Sep 24, 2017
1 parent e0743a1 commit 6da85b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asv_bench/benchmarks/sparse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from itertools import repeat
import itertools

from .pandas_vb_common import *
import scipy.sparse
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 6da85b3

Please sign in to comment.