@@ -11129,11 +11129,27 @@ def cummax(self, axis: Axis | None = None, skipna: bool = True, *args, **kwargs)
11129
11129
return NDFrame .cummax (self , axis , skipna , * args , ** kwargs )
11130
11130
11131
11131
@doc (make_doc ("cumsum" , ndim = 2 ))
11132
- def cumsum (self , axis : Axis | None = None , skipna : bool = True , * args , ** kwargs ):
11132
+ def cumsum (
11133
+ self ,
11134
+ axis : Axis | None = None ,
11135
+ numeric_only : bool = False ,
11136
+ skipna : bool = True ,
11137
+ * args ,
11138
+ ** kwargs ,
11139
+ ):
11140
+ self ._get_numeric_data () if numeric_only else self
11133
11141
return NDFrame .cumsum (self , axis , skipna , * args , ** kwargs )
11134
11142
11135
11143
@doc (make_doc ("cumprod" , 2 ))
11136
- def cumprod (self , axis : Axis | None = None , skipna : bool = True , * args , ** kwargs ):
11144
+ def cumprod (
11145
+ self ,
11146
+ axis : Axis | None = None ,
11147
+ numeric_only : bool = False ,
11148
+ skipna : bool = True ,
11149
+ * args ,
11150
+ ** kwargs ,
11151
+ ):
11152
+ self ._get_numeric_data () if numeric_only else self
11137
11153
return NDFrame .cumprod (self , axis , skipna , * args , ** kwargs )
11138
11154
11139
11155
def nunique (self , axis : Axis = 0 , dropna : bool = True ) -> Series :
0 commit comments