@@ -1251,10 +1251,11 @@ def cumulative_prod(
1251
1251
be cast if necessary.
1252
1252
1253
1253
Default: ``None``.
1254
- include_initial : bool, optional
1255
- Boolean indicating whether to include the initial value (ones) as
1256
- the first value in the output. With ``include_initial=True``
1257
- the shape of the output is different than the shape of the input.
1254
+ include_initial : {None, bool}, optional
1255
+ A boolean indicating whether to include the initial value (one) as
1256
+ the first value along the provided axis in the output. With
1257
+ ``include_initial=True`` the shape of the output is different than
1258
+ the shape of the input.
1258
1259
1259
1260
Default: ``False``.
1260
1261
@@ -1340,10 +1341,11 @@ def cumulative_sum(
1340
1341
be cast if necessary.
1341
1342
1342
1343
Default: ``None``.
1343
- include_initial : bool, optional
1344
- Boolean indicating whether to include the initial value (ones) as
1345
- the first value in the output. With ``include_initial=True``
1346
- the shape of the output is different than the shape of the input.
1344
+ include_initial : {None, bool}, optional
1345
+ A boolean indicating whether to include the initial value (zero) as
1346
+ the first value along the provided axis in the output. With
1347
+ ``include_initial=True`` the shape of the output is different than
1348
+ the shape of the input.
1347
1349
1348
1350
Default: ``False``.
1349
1351
0 commit comments