0
$\begingroup$

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?

$\endgroup$
0
$\begingroup$

the package pandas_finance does the job :-)

from pandas_finance import Equity
aapl = Equity('AAPL')
aapl.industry
$\endgroup$
  • $\begingroup$ Could you be so kind to tell us how with an example? $\endgroup$ – Bob Jansen Feb 22 '17 at 20:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.