Nov. 7, 2023, 2:07 p.m. | Python and Pandas with Reuven Lerner

Reuven Lerner www.youtube.com

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.

change data diff pandas series values

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Lead Data Modeler

@ Sherwin-Williams | Cleveland, OH, United States