Skip to content

Commit a249377

Browse files
DOC: Fix a copy-paste mistake in the cumulative_sum docstring.
Change '(ones)' to '(zeros)' in the description of `include_initial`. '(ones)' was probably left over from a copy-paste of the `cumulative_prod` docstring. [skip actions] [skip azp] [skip cirrus]
1 parent 480dbf6 commit a249377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/_core/fromnumeric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2817,7 +2817,7 @@ def cumulative_sum(x, /, *, axis=None, dtype=None, out=None,
28172817
but the type will be cast if necessary. See :ref:`ufuncs-output-type`
28182818
for more details.
28192819
include_initial : bool, optional
2820-
Boolean indicating whether to include the initial value (ones) as
2820+
Boolean indicating whether to include the initial value (zeros) as
28212821
the first value in the output. With ``include_initial=True``
28222822
the shape of the output is different than the shape of the input.
28232823
Default: ``False``.

0 commit comments

Comments
 (0)