Skip to content

Glossary: pandas Basics

pct_change

Also written: .pct_change()

Gives each value's change from the row before as a fraction: (this − last) ÷ last. The first row gets NaN.

Where the book teaches it

Related terms

NaN, NaT