I'm successfully getting data from a .CSV, and I'd like to chart the price compared to a stock's context sid.
For example:
context.exxon = sid(8347)
exxon = context.exxon
exxon_data = data[exxon]
average_price = exxon_data.mavg(30)
crude_price = int(data['crude']['price'])
is great, but I can't apply .mavg(30) on an int object.
Very new; thanks for any tips.