Skip to content

Commit 43b10db

Browse files
authored
Merge pull request numpy#27464 from WarrenWeckesser/docfix-cumulative-sum
DOC: Fix a copy-paste mistake in the cumulative_sum docstring.
2 parents 480dbf6 + a249377 commit 43b10db

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)