Skip to content

Glossary: pandas Beyond the Basics

pct_change

Also written: .pct_change()

The change from the previous row as a fraction of the previous value. `pct_change(12)` on monthly data compares with the same month last year.

Where the book teaches it

Related terms

shiftdiffYear-over-year