-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Need help pulling 10 years of income statements, balance sheets, and cash flow statements #111
Comments
So I actually implemented this last week but have been slow rolling it out. from edgar import *
company = Company("MSFT")
filings = company.get_filings(form="10-K").latest(9)
financials = MultiFinancials(filings)
financials.get_balance_sheet()
financials.get_cash_flow_statement()
financials.get_income_statement() |
Thank you for your prompt reply, dgunning! I tried it and it works. Thank you! But I noticed that values are incorrect. For example, when pulling the 10 years income statements for MSFT, the revenue row shows <N/A> for 2015 and 2014. Also, I noticed that many details such as R&D expense, SG&A expense are missing from the dataframe. Is this by design? |
I think it has to do with the contactenation of the rows/dataframe. This might be due to lines having slightly different text from one year to another. There might be a way to do this by removing the index for each year and creating a new one. The rows order is kind of important in this process so I wonder what would be the best way to do it. When I do Excel models, I actually add some rows as the accounts are used and kind of always kept them even if they were removed in later years. There might be some work around by doing some kind of sumif or using some specific mapping to map out the account and refer to the mapping. But it might be hard with all the different ways financials are presented. |
This will be hard to fix with the current algorithmn. It works by starting with the specific rows that are in the most recent statement e.g. Probably the way to fix this is with semantic joins using AI. I will play around with this and maybe write a howto. |
I guess that it might be helpful to have the full statements for each years with the labels and years for each statement showing. In this way, there could be a manual fix easily done. Thanks! |
I am writing a script to pull 10 years of income statements, balance sheets, and cash flow statements based on a ticker parameter and encountered a few issues.
Should these empty rows be removed from the returned object?
The text was updated successfully, but these errors were encountered: