Skip to content

Commit 8f3c1db

Browse files
authored
DOC: Update pct_change documentation (#51262)
* DOC: Update pct_change documentation Related to SO question: https://stackoverflow.com/questions/75395345/how-to-avoid-bfill-or-ffill-when-calculating-pct-change-with-nans * DOC: Update pct_change documentation
1 parent b9a4335 commit 8f3c1db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10797,7 +10797,7 @@ def pct_change(
1079710797
----------
1079810798
periods : int, default 1
1079910799
Periods to shift for forming percent change.
10800-
fill_method : str, default 'pad'
10800+
fill_method : {'backfill', 'bfill', 'pad', 'ffill', None}, default 'pad'
1080110801
How to handle NAs **before** computing percent changes.
1080210802
limit : int, default None
1080310803
The number of consecutive NAs to fill before stopping.

0 commit comments

Comments
 (0)