Inconsistent Revenue Pulling from past twelve 10Q forms for 'TSLA' stock
Running script
c = Company("TSLA") file = c.get_filings(form="10-Q") file[5].obj().income_statement.to_dataframe()
This gives Tesla 2023-06-30 (Q2) income statement, and the 'us-gaap_Revenues' (concept) shows revenue of 24927000000.0 while 'us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax' shows revenue of 567000000.0 (which is only the automotive leasing revenue if we refer to this 2023 Q3 10-Q filing: https://ir.tesla.com/_flysystem/s3/sec/000095017023033872/tsla-20230630-gen.pdf).
However, if we refer to the most recent 2025-03-31 (Q1) data and filing by running
file[0].obj().income_statement.to_dataframe(),
Now we don't have the 'us-gaap_Revenues' row anymore and only have the 'us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax' row which is essentially the overall revenue.
Why we get this concept label inconsistency here. And the retrieval for the 2023 Q2 data is clearly wrong for the gaap_RevenueFromContractWithCustomerExcludingAssessedTax
Sorry for the delayed response. gaap_RevenueFromContractWithCustomerExcludingAssessedTax rolls up into us-gaap_Revenues but the code currently does not handle hierarchical relationships like this. I am working on a change for this plus support for company specific standardization. It may take a couple of days at least, depending on how the testing goes
Made some improvements to standardization in the latest release. Can you update and check?