From fc9de767cbaf8301ec754b6757ced5b366e84f1c Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Thu, 2 Aug 2018 05:57:34 -0500 Subject: [PATCH] Fixed py36-only syntax [ci skip] (#22167) Closes https://github.com/pandas-dev/pandas/issues/22162 [ci skip] --- asv_bench/benchmarks/reshape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asv_bench/benchmarks/reshape.py b/asv_bench/benchmarks/reshape.py index 07634811370c7..3cf9a32dab398 100644 --- a/asv_bench/benchmarks/reshape.py +++ b/asv_bench/benchmarks/reshape.py @@ -141,7 +141,7 @@ class GetDummies(object): def setup(self): categories = list(string.ascii_letters[:12]) - s = pd.Series(np.random.choice(categories, size=1_000_000), + s = pd.Series(np.random.choice(categories, size=1000000), dtype=pd.api.types.CategoricalDtype(categories)) self.s = s