- Published on
- · Data Independent
Pandas Diff | pd.DataFrame.diff()
This post is auto-generated from a public YouTube video for personal study notes. It is not an endorsement. The transcript is machine-derived and may contain errors; refer to the original video for accuracy.
About this video
Pandas Diff will difference your data. This means calculating the change in your row(s)/column(s) over a set number of periods.
Or simply, pandas diff will subtract 1 cell value from another cell value within the same index.
Diff is very helpful when calculating rates of change. For example: you have temperature readings per day, calculating the difference will tell you how the temperatures have changed Day-Over-Day.
Loading transcript…