Skip to content

Docstring pandas.data frame.diff #20227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Prev Previous commit
Next Next commit
DOC: update the pandas.DataFrame.diff docstring
  • Loading branch information
adatasetaday committed Mar 11, 2018
commit 2802e1b79c60d4c78823dbe9a40a13f549a242e2
2 changes: 1 addition & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -4746,7 +4746,7 @@ def diff(self, periods=1, axis=0):
--------
DataFrame.pct_change: Percent change over given number of periods.
DataFrame.shift: Shift index by desired number of periods with an
optional time freq
optional time freq
Series.diff: First discrete difference of object

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add DataFrame.shift

Examples
Expand Down