How to get a concept item that has no dimensions? #324
Replies: 2 comments
-
|
That would be one way of doing it. Because this is useful I added the ability to filter c = Company("NVDA")
f = c.latest("10-K")
xb = XBRL.from_filing(f)
facts = (xb.query()
.by_statement_type('IncomeStatement')
.by_concept('us-gaap:CostOfRevenue')
.by_dimension(None)
.to_dataframe('concept','label', 'value', 'dim_us-gaap_NatureOfExpenseAxis')
) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thank you |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
The results of a
facts.query().by_concept('us-gaap:CostOfRevenue')are shown below. How can I get the item that does not have a dimension (i.e. I want the first item in the output shown below without using indexing)?Is there another way to get it without using the following custom query?
Beta Was this translation helpful? Give feedback.
All reactions