Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #Percentage #change #current #prior
ADD COMMENT
Topic
Name
1+1 =