From 8147b6c2514909697e472818c5e98d0af9c74a1f Mon Sep 17 00:00:00 2001 From: tp Date: Sun, 19 Sep 2021 10:18:20 +0100 Subject: [PATCH 1/2] DEPR: Fix deprecation warnings in ASV --- asv_bench/benchmarks/algorithms.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index e48a2060a3b34..3c6ee59211e27 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -44,9 +44,9 @@ def setup(self, unique, sort, dtype): raise NotImplementedError data = { - "int": pd.Int64Index(np.arange(N)), - "uint": pd.UInt64Index(np.arange(N)), - "float": pd.Float64Index(np.random.randn(N)), + "int": pd.Index(np.arange(N), dtype="int64"), + "uint": pd.Index(np.arange(N), dtype="uint64"), + "float": pd.Index(np.random.randn(N), dtype="float64"), "object": string_index, "datetime64[ns]": pd.date_range("2011-01-01", freq="H", periods=N), "datetime64[ns, tz]": pd.date_range( @@ -76,9 +76,9 @@ class Duplicated: def setup(self, unique, keep, dtype): N = 10 ** 5 data = { - "int": pd.Int64Index(np.arange(N)), - "uint": pd.UInt64Index(np.arange(N)), - "float": pd.Float64Index(np.random.randn(N)), + "int": pd.Index(np.arange(N), dtype="int64"), + "uint": pd.Index(np.arange(N), dtype="uint64"), + "float": pd.Index(np.random.randn(N), dype="float64"), "string": tm.makeStringIndex(N), "datetime64[ns]": pd.date_range("2011-01-01", freq="H", periods=N), "datetime64[ns, tz]": pd.date_range( From ee26eb6e1e8840564ec5a95e8d8fc2b2e381d518 Mon Sep 17 00:00:00 2001 From: Terji Petersen Date: Tue, 21 Sep 2021 08:16:00 +0100 Subject: [PATCH 2/2] Update asv_bench/benchmarks/algorithms.py Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com> --- asv_bench/benchmarks/algorithms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index 3c6ee59211e27..2e43827232ae5 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -78,7 +78,7 @@ def setup(self, unique, keep, dtype): data = { "int": pd.Index(np.arange(N), dtype="int64"), "uint": pd.Index(np.arange(N), dtype="uint64"), - "float": pd.Index(np.random.randn(N), dype="float64"), + "float": pd.Index(np.random.randn(N), dtype="float64"), "string": tm.makeStringIndex(N), "datetime64[ns]": pd.date_range("2011-01-01", freq="H", periods=N), "datetime64[ns, tz]": pd.date_range(