GOOGL Consolidated Income Statement Discrepancies
Hi Dwight,
Thanks again for all of the recent large updates and improvements to the library. We pulled v4.1.1 and are looking at GOOGL's income statement. This may have been present in prior versions, but what we're seeing is that the 10-K (e.g. FY2024) line item "Cost of Revenue" is being parsed by XBRL2 as "Revenue", "Income before income taxes" is not being populated for every fiscal year, and "Net income" is showing $0.00 despite there clearly being net income for GOOGL over the past several years.
c = Company('GOOGL')
f = c.get_filings(form="10-K", year=[2025, 2024, 2023, 2022])
ff = XBRLS.from_filings(f)
ii = ff.statements.income_statement()
ii.to_dataframe()
Outputs are below:
10-K excerpt is below for comparison:
- "Cost of Revenue" is being parsed as "Revenue", and this error carries all the way through to the dataframe.
- "Income before income taxes" is only populated for FY2024, but missing for FY2023, FY2022 and FY2021.
- "Net income" report output shows all zeroes, but the dataframe was populated with "Diluted net income per share (Note 12)" numbers into the "Net income" dataframe (row 2 "us-gaap_NetIncomeLoss").
Hi @kalavrcom,
Thank you for this detailed bug report about GOOGL's income statement parsing issues in v4.1.1 (June 2025).
Verification Results
I've just verified your test case with the current version (v5.2.0), and all three issues have been resolved:
✅ Issue 1: Cost of Revenue Labeling
Original problem: "Cost of Revenue" was mislabeled as "Revenue" Status: FIXED - Now correctly shows "Total Cost of Revenue" as a proper line item
✅ Issue 2: Income Before Income Taxes - Missing Historical Data
Original problem: Only populated for FY2024, missing for FY2023, FY2022, FY2021 Status: FIXED - All four fiscal years now populated:
- FY 2024: 119,815
- FY 2023: 85,717
- FY 2022: 71,328
- FY 2021: 90,734
✅ Issue 3: Net Income Showing Zeros
Original problem: Net income showed $0.00 despite actual values existing Status: FIXED - Now shows correct values:
- FY 2024: $100,118M
- FY 2023: $73,795M
- FY 2022: $59,972M
- FY 2021: $76,033M
What Fixed It
Since your report in June 2025, we've made extensive XBRL improvements that directly addressed these issues:
- Income Statement Type Selection (Issues #506, #518) - Fixed the logic that was causing incorrect statement selection and zero values
- Revenue Deduplication & Labeling (Issues #438, #513) - Improved concept identification and labeling
- Unified Synonym Management System - Added comprehensive synonym groups for better concept standardization
- Period Selection Improvements (Issue #464) - Fixed missing comparative periods in statements
Recommendation
Please upgrade to v5.2.0 and retest:
pip install -U edgartools
Your original test code should now work correctly. If you encounter any remaining issues with v5.2.0, please let us know and we'll prioritize them immediately.
Thank you for helping us improve EdgarTools!
Closing as resolved. All three reported issues have been fixed in v5.2.0. Please reopen if you encounter any problems with the current version.