From 1e2320cf62f38a10a2f64bc1e682f5c475e713f3 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Thu, 9 Mar 2023 18:06:10 -0800 Subject: [PATCH] CI/DEPS: Use np.prod in tests for np deprecation --- pandas/tests/resample/test_datetime_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/tests/resample/test_datetime_index.py b/pandas/tests/resample/test_datetime_index.py index 3c46887dad859..01e11c779e957 100644 --- a/pandas/tests/resample/test_datetime_index.py +++ b/pandas/tests/resample/test_datetime_index.py @@ -1842,7 +1842,7 @@ def test_resample_apply_product(duplicates, unit): if duplicates: df.columns = ["A", "A"] - result = df.resample("Q").apply(np.product) + result = df.resample("Q").apply(np.prod) expected = DataFrame( np.array([[0, 24], [60, 210], [336, 720], [990, 1716]], dtype=np.int64), index=DatetimeIndex(