Skip to content

Commit afab41d

Browse files
quantsnusThomas Lauber
andauthored
change cumproduct to cumprod (#8031)
Co-authored-by: Thomas Lauber <thomas.lauber@apsensing.com>
1 parent 52f5cf1 commit afab41d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/coordinates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def to_index(self, ordered_dims: Sequence[Hashable] | None = None) -> pd.Index:
141141
index_lengths = np.fromiter(
142142
(len(index) for index in indexes), dtype=np.intp
143143
)
144-
cumprod_lengths = np.cumproduct(index_lengths)
144+
cumprod_lengths = np.cumprod(index_lengths)
145145

146146
if cumprod_lengths[-1] == 0:
147147
# if any factor is empty, the cartesian product is empty

0 commit comments

Comments
 (0)