Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stock.get_financials() output is not dataframe #270

Open
jpcam opened this issue Dec 2, 2021 · 0 comments
Open

stock.get_financials() output is not dataframe #270

jpcam opened this issue Dec 2, 2021 · 0 comments

Comments

@jpcam
Copy link

jpcam commented Dec 2, 2021

Summary (include Python version)

The output is some kind of nested dictionary which is difficult to parse.
from iexfinance.stocks import Stock
stocks=Stock(['NEM','FCX'],token='my_live_token',output_format='pandas')
fins_data=stocks.get_financials(period='annual')
print(fins_data)

returns a dictionary (2x1x70)

Date/time of issue

Dec 1 2021

Expected behavior

iexfinance documentation suggests it will output a pandas dataframe. It should be similar to the output from the following:
from iexfinance.stocks import Stock
stocks=Stock(['NEM','FCX'],token='my_live_token')
co_info=stocks.get_company()
print(co_info)

Actual behavior

returns a dictionary (2x1x70)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant