Skip to content

Commit a251a6d

Browse files
committed
added validation back
1 parent 0ec76a2 commit a251a6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/groupby/groupby.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class providing the base-class of operations.
5757
T,
5858
npt,
5959
)
60+
from pandas.compat.numpy import function as nv
6061
from pandas.errors import (
6162
AbstractMethodError,
6263
DataError,
@@ -4624,7 +4625,7 @@ def cumprod(
46244625
horse 16 10
46254626
bull 6 9
46264627
"""
4627-
4628+
nv.validate_groupby_func("cumprod", args, kwargs, ["numeric_only", "skipna"])
46284629
if axis is not lib.no_default:
46294630
axis = self.obj._get_axis_number(axis)
46304631
self._deprecate_axis(axis, "cumprod")
@@ -4685,7 +4686,7 @@ def cumsum(
46854686
gorilla 10 7
46864687
lion 6 9
46874688
"""
4688-
4689+
nv.validate_groupby_func("cumsum", args, kwargs, ["numeric_only", "skipna"])
46894690
if axis is not lib.no_default:
46904691
axis = self.obj._get_axis_number(axis)
46914692
self._deprecate_axis(axis, "cumsum")

0 commit comments

Comments
 (0)