我拥有以下的pandas图表:
是否可能在y轴上添加“%”符号而不是作为标签显示,例如它会显示代替0.0,应该是0.0 %,并且对于所有数字都是如此?
代码:
代码:
import pandas as pd
from pandas import datetime
from pandas import DataFrame as df
import matplotlib
from pandas_datareader import data as web
import matplotlib.pyplot as plt
import datetime
end = datetime.date.today()
start = datetime.date(2020,1,1)
data = web.DataReader('fb', 'yahoo', start, end)
data['percent'] = data['Close'].pct_change()
data['percent'].plot()