Skip to content

Commit

Permalink
DOC: GH39672 Pandas dataframe pct_change function arguments (#40266)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianozsvald authored Mar 6, 2021
1 parent 9208a35 commit 97b832b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10257,10 +10257,10 @@ def pct_change(
GOOG 1769950 1500923 1371819
APPL 30586265 40912316 41403351
>>> df.pct_change(axis='columns')
2016 2015 2014
GOOG NaN -0.151997 -0.086016
APPL NaN 0.337604 0.012002
>>> df.pct_change(axis='columns', periods=-1)
2016 2015 2014
GOOG 0.179241 0.094112 NaN
APPL -0.252395 -0.011860 NaN
"""
axis = self._get_axis_number(kwargs.pop("axis", self._stat_axis_name))
if fill_method is None:
Expand Down

0 comments on commit 97b832b

Please sign in to comment.