Skip to content

Commit 1695e5b

Browse files
mroeschkemeeseeksmachine
authored andcommitted
Backport PR pandas-dev#51877: CI/DEPS: Use np.prod in tests for np deprecation
1 parent 906e004 commit 1695e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/resample/test_datetime_index.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1843,7 +1843,7 @@ def test_resample_apply_product(duplicates, unit):
18431843
if duplicates:
18441844
df.columns = ["A", "A"]
18451845

1846-
result = df.resample("Q").apply(np.product)
1846+
result = df.resample("Q").apply(np.prod)
18471847
expected = DataFrame(
18481848
np.array([[0, 24], [60, 210], [336, 720], [990, 1716]], dtype=np.int64),
18491849
index=DatetimeIndex(

0 commit comments

Comments
 (0)