Help with MultiFinancials - historical 5 year data #296
Unanswered
mikeystown
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm having difficulty getting historical data (e.g. last 5 years) using MultiFinancials
Can somebody help with what the right code should be?
Using the following code which I saw recommended, I get the error " 'function' object has no attribute 'to_dataframe' "
company = Company(ticker)
filings = company.latest("10-K", 5)
from edgar import MultiFinancials
financials = MultiFinancials(filings)
is_df = financials.income_statement.to_dataframe()
This next set of code executes but gives the wrong data (wrong row order and missing many rows vs. 'financials = company.get_financials()' request)
company = Company(ticker)
filings = company.latest("10-K",5)
from edgar import MultiFinancials
financials = MultiFinancials.extract(filings)
is_df = financials.income_statement().to_dataframe()
Much appreciated,
MT
Beta Was this translation helpful? Give feedback.
All reactions