Skip to content

Commit 97b832b

Browse files
authored
DOC: GH39672 Pandas dataframe pct_change function arguments (#40266)
1 parent 9208a35 commit 97b832b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/generic.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -10257,10 +10257,10 @@ def pct_change(
1025710257
GOOG 1769950 1500923 1371819
1025810258
APPL 30586265 40912316 41403351
1025910259
10260-
>>> df.pct_change(axis='columns')
10261-
2016 2015 2014
10262-
GOOG NaN -0.151997 -0.086016
10263-
APPL NaN 0.337604 0.012002
10260+
>>> df.pct_change(axis='columns', periods=-1)
10261+
2016 2015 2014
10262+
GOOG 0.179241 0.094112 NaN
10263+
APPL -0.252395 -0.011860 NaN
1026410264
"""
1026510265
axis = self._get_axis_number(kwargs.pop("axis", self._stat_axis_name))
1026610266
if fill_method is None:

0 commit comments

Comments
 (0)