File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def cartesian_product(X) -> list[np.ndarray]:
41
41
return []
42
42
43
43
lenX = np .fromiter ((len (x ) for x in X ), dtype = np .intp )
44
- cumprodX = np .cumproduct (lenX )
44
+ cumprodX = np .cumprod (lenX )
45
45
46
46
if np .any (cumprodX < 0 ):
47
47
raise ValueError ("Product space too large to allocate arrays!" )
@@ -60,7 +60,7 @@ def cartesian_product(X) -> list[np.ndarray]:
60
60
return [
61
61
tile_compat (
62
62
np .repeat (x , b [i ]),
63
- np .product (a [i ]), # pyright: ignore[reportGeneralTypeIssues]
63
+ np .prod (a [i ]), # pyright: ignore[reportGeneralTypeIssues]
64
64
)
65
65
for i , x in enumerate (X )
66
66
]
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ def test_cython_group_transform_cumsum(np_dtype):
194
194
def test_cython_group_transform_cumprod ():
195
195
# see gh-4095
196
196
dtype = np .float64
197
- pd_op , np_op = group_cumprod , np .cumproduct
197
+ pd_op , np_op = group_cumprod , np .cumprod
198
198
_check_cython_group_transform_cumulative (pd_op , np_op , dtype )
199
199
200
200
You can’t perform that action at this time.
0 commit comments