Answers for "Percentage change between the current and the prior element."

0

Percentage change between the current and the prior element.

s = pd.Series([90, 91, 85])
s
0    90
1    91
2    85
dtype: int64

s.pct_change()
0         NaN
1    0.011111
2   -0.065934
dtype: float64
Posted by: Guest on August-11-2021
0

Percentage change between the current and the prior element.

s = pd.Series([90, 91, 85])
s
0    90
1    91
2    85
dtype: int64

s.pct_change()
0         NaN
1    0.011111
2   -0.065934
dtype: float64
Posted by: Guest on August-11-2021

Code answers related to "Percentage change between the current and the prior element."

Python Answers by Framework

Browse Popular Code Answers by Language