I have a pandas dataframe and I'd like to calculate the percentage difference compared to the beginning value. Is there a way to use pct_change() to complete this task?
e.g
my data
date close
2020-05-08 100
2020-05-11 102
2020-05-12 108
I'd like the change to appear like
date close change (%)
2020-05-08 100 0
2020-05-11 102 2
2020-05-12 108 8