I'm still new to python and i'm sometimes struggling with it a bit. I need to ask for help with something that is probably trivially simple.
I would like to plot an item of Morningstar fundamental data as a function of time. Pick any one, doesn't matter, but let's say for example:
valuation_ratios.pe_ratio, for AAPL from Jan 2000 to Jan 2017
I can do simple line plots of PRICE easy enough, using:
data = get_pricing('AAPL', start_date='2000-01-01', end_date='2017-01-01')
X = data['price']
plt.plot(X.index, X.values)
plt.ylabel('Price')
plt.legend(['AAPL']);
but then when it comes to plotting Fundamentals data (instead of price), i'm struggling with figuring out the pandas part & getting the correct syntax for the indexing. Your kind help with just a few lines of code, please, will be much appreciated. Thanks in advance, TonyM.