0

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?

Goofy Gert
  • 153
  • 7

1 Answers1

0

the package pandas_finance does the job :-)

from pandas_finance import Equity
aapl = Equity('AAPL')
aapl.industry
Goofy Gert
  • 153
  • 7