Comparing values in Pandas with "diff" and "pct_change"

Published: 07 November 2023
on channel: Python and Pandas with Reuven Lerner
989
36

Want to know how much the values in a series or data frame have changed from row to row? Meet the "diff" method, which will calculate this for you -- either from the previous row, or from any other row. And if you want to know the percentage change? Just use "pct_change" instead.


Watch video Comparing values in Pandas with "diff" and "pct_change" online, duration hours minute second in high quality that is uploaded to the channel Python and Pandas with Reuven Lerner 07 November 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 989 times and liked it 36 visitors.