edgartools icon indicating copy to clipboard operation
edgartools copied to clipboard

10-Q filings Facts to pandas dataframe

Open vpanchal-code opened this issue 3 years ago • 2 comments

First of all, This is really amazing! I am enjoying using it and makes it much more easier to find filings than the edgar sec website.

Is there a way to convert the latest 10-Q filing data to a pandas dataframe?

from edgar import *
set_identity("first last [email protected]")
company = Company(909832)
last10q = company.get_filings(form="10-Q").latest()
last10q.xbrl()

vpanchal-code avatar Jun 14 '23 13:06 vpanchal-code

xbrl = last10q.xbrl()
facts = xbrl.facts
df = facts.data

dgunning avatar Jun 14 '23 15:06 dgunning

Thank you that worked! Much appreciated

vpanchal-code avatar Jun 14 '23 16:06 vpanchal-code