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

Multiple financial statements with last>=1 parameter fails for pandas #119

Closed
amittleider opened this issue Mar 26, 2019 · 3 comments · Fixed by #125
Closed

Multiple financial statements with last>=1 parameter fails for pandas #119

amittleider opened this issue Mar 26, 2019 · 3 comments · Fixed by #125
Labels

Comments

@amittleider
Copy link

amittleider commented Mar 26, 2019

from iexfinance.stocks import Stock
aapl = Stock("AAPL", output_format='pandas')
balance_sheet = aapl.get_balance_sheet(last=4)

This returns a data frame with 1 row, where it should return a dataframe with 4 rows.

The above is the main problem, but I have a second question: it seems that from time to time, pandas dataframes are organized with the company as the column, and sometimes with the company as the row. I'm wondering what the logic is behind it? To me, it seems that financial statements should be a dataframe with a MultiIndex of company name and report date. (moved to #121)

Nice work on the repo!

@addisonlynch addisonlynch added this to the rls 0.4.1 milestone Mar 26, 2019
@addisonlynch
Copy link
Owner

Thanks, @amittleider, looking into this

@addisonlynch addisonlynch changed the title Multiple balance sheets with last>=1 parameter fails for pandas Multiple financial statements with last>=1 parameter fails for pandas Apr 10, 2019
@addisonlynch
Copy link
Owner

This is an issue with the following as well:

  • get_income_statement
  • get_cash_flow

and could be implemented in

  • get_earnings
  • get_financials

@zhenyulin
Copy link

this parameter should be in the document as well, currently, only period is documented

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

Successfully merging a pull request may close this issue.

3 participants