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.
Also written: .pct_change()
Gives each value's change from the row before as a fraction: (this − last) ÷ last. The first row gets NaN.