@@ -4672,6 +4672,13 @@ def cumprod(self, *args, **kwargs) -> NDFrameT:
4672
4672
"""
4673
4673
Cumulative product for each group.
4674
4674
4675
+ Parameters
4676
+ ----------
4677
+ *args : tuple
4678
+ Positional arguments to be passed to `func`.
4679
+ **kwargs : dict
4680
+ Additional/specific keyword arguments to be passed to the function, such as `numeric_only` and `skipna`.
4681
+
4675
4682
Returns
4676
4683
-------
4677
4684
Series or DataFrame
@@ -4721,6 +4728,13 @@ def cumprod(self, *args, **kwargs) -> NDFrameT:
4721
4728
def cumsum (self , * args , ** kwargs ) -> NDFrameT :
4722
4729
"""
4723
4730
Cumulative sum for each group.
4731
+
4732
+ Parameters
4733
+ ----------
4734
+ *args : tuple
4735
+ Positional arguments to be passed to `func`.
4736
+ **kwargs : dict
4737
+ Additional/specific keyword arguments to be passed to the function, such as `numeric_only` and `skipna`.
4724
4738
4725
4739
Returns
4726
4740
-------
@@ -4776,6 +4790,14 @@ def cummin(
4776
4790
"""
4777
4791
Cumulative min for each group.
4778
4792
4793
+ Parameters
4794
+ ----------
4795
+ numeric_only : bool, default False
4796
+ Include only `float`, `int` or `boolean` data.
4797
+ **kwargs : dict, optional
4798
+ Additional keyword arguments to be passed to the function, such as `skipna`, to control whether
4799
+ NA/null values are ignored.
4800
+
4779
4801
Returns
4780
4802
-------
4781
4803
Series or DataFrame
@@ -4838,6 +4860,14 @@ def cummax(
4838
4860
"""
4839
4861
Cumulative max for each group.
4840
4862
4863
+ Parameters
4864
+ ----------
4865
+ numeric_only : bool, default False
4866
+ Include only `float`, `int` or `boolean` data.
4867
+ **kwargs : dict, optional
4868
+ Additional keyword arguments to be passed to the function, such as `skipna`, to control whether
4869
+ NA/null values are ignored.
4870
+
4841
4871
Returns
4842
4872
-------
4843
4873
Series or DataFrame
@@ -5134,6 +5164,32 @@ def pct_change(
5134
5164
"""
5135
5165
Calculate pct_change of each value to previous entry in group.
5136
5166
5167
+ Parameters
5168
+ ----------
5169
+ periods : int, default 1
5170
+ Periods to shift for calculating percentage change. (E.g., 1
5171
+ compares adjacent elements, while a period of 2 compares every other element).
5172
+
5173
+ fill_method : FillnaOptions or None, default None
5174
+ This parameter specifies how to handle missing values after the initial shift operation
5175
+ that is necessary for calculating the percentage change. In future versions, users will be
5176
+ encouraged to manually handle missing values prior to using `pct_change`. Options for fill methods
5177
+ (when explicitly specified) are as follows:
5178
+
5179
+ - A FillnaOptions value (e.g., 'ffill', 'bfill') to specify forward or backward filling.
5180
+ - None to indicate that no filling should be performed.
5181
+
5182
+ Note: Direct use of this parameter is discouraged due to the impending deprecation.
5183
+
5184
+ limit : int or None, default None
5185
+ The maximum number of consecutive NA values to forward or backward fill, depending on the
5186
+ `fill_method` chosen. This parameter's functionality is also subject to deprecation, and it is
5187
+ recommended that NaN values be addressed prior to calling `pct_change`.
5188
+
5189
+ freq : str, pandas offset object or None, default None
5190
+ Increment to use from time series API (e.g., 'M' for month-end frequency). This parameter is
5191
+ only relevant if the data is time series. If None, the frequency inferred from the index will be used.
5192
+
5137
5193
Returns
5138
5194
-------
5139
5195
Series or DataFrame
0 commit comments