import pandas as pd
ind = pd.date_range('01/01/2000', periods = 4, freq ='W')
df = pd.DataFrame({"A":[14, 4, 5, 4]},index = ind)
df.pct_change()
A
2000-01-02 NaN
2000-01-09 -0.714286
2000-01-16 0.250000
2000-01-23 -0.200000
We get df's A column growth rate with pct_change function,if i expect the below result ,how to add % in pct_change's output quickly?
A
2000-01-02 NaN
2000-01-09 -71%
2000-01-16 25%
2000-01-23 -20%