From 3f90255eb0acbb2d7c428ecbc16765bfa43ec385 Mon Sep 17 00:00:00 2001 From: Christopher Whelan Date: Tue, 29 Jan 2019 21:48:52 -0800 Subject: [PATCH] CLN: do not use .repeat asv setting for storing benchmark data (#25015) --- asv_bench/benchmarks/strings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py index e9f2727f64e15..b5b2c955f0133 100644 --- a/asv_bench/benchmarks/strings.py +++ b/asv_bench/benchmarks/strings.py @@ -102,10 +102,10 @@ def setup(self, repeats): N = 10**5 self.s = Series(tm.makeStringIndex(N)) repeat = {'int': 1, 'array': np.random.randint(1, 3, N)} - self.repeat = repeat[repeats] + self.values = repeat[repeats] def time_repeat(self, repeats): - self.s.str.repeat(self.repeat) + self.s.str.repeat(self.values) class Cat(object):