YQL has different companies that are listed under an industry:
e.g. select * from yahoo.finance.industry where id="112"
Is there a way to query the table for a ticker symbol and find out to which industry the company belongs?
YQL has different companies that are listed under an industry:
e.g. select * from yahoo.finance.industry where id="112"
Is there a way to query the table for a ticker symbol and find out to which industry the company belongs?
the package pandas_finance does the job :-)
from pandas_finance import Equity
aapl = Equity('AAPL')
aapl.industry