edgartools icon indicating copy to clipboard operation
edgartools copied to clipboard

[DATA] using include_dimensions=False for balance sheet skips over PPE values for URI

Open miruddfan opened this issue 11 months ago • 2 comments

Data Quality Issue Details

Issue Type:

  • [x ] Incorrect financial values (wrong numbers)
  • [ ] Missing financial data (expected data not present)
  • [ ] Calculation errors (formulas producing wrong results)
  • [x ] Data inconsistency (different values for same metric)
  • [ ] Historical data problems (changes over time)

Environment

EdgarTools Version: 5.6.2 Python Version:3.10.19
Operating System: win 11

Financial Data Details

**Company/Ticker: URI ** Form Type: 10-k Filing Date/Period: 2025 Statement Type: Balance Sheet

Specific Metric/Concept:

  • Financial line item: PPE
  • XBRL concept name: us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization

Data Issue

Expected Value:

  • Amount: 1034000000
  • Source: 10-k 2025
  • Page/section reference: Page 57 of 10-K filing

Actual Value from EdgarTools:

  • Amount: Missing

Code to reproduce:

from edgar import Company

company_ticker = input("Enter company ticker (e.g., MSFT): ").upper()
company_ticker = "URI"  # Example: Apple Inc.
company = Company(company_ticker)
financials = company.get_financials(
balance_sheet = financials.balance_sheet()
bs_df = balance_sheet.to_dataframe(presentation=True)
bs_df2 = balance_sheet.to_dataframe(include_dimensions=False,presentation=True)


## Cross-Verification
**Have you verified this issue with:**
- [ ] Multiple time periods for same company
- [ ] Multiple companies with same issue
- [ ] Direct SEC filing comparison
- [ ] Other financial data sources

**Affects multiple periods/companies?**
- Companies tested: URI
- Time periods tested:2025
- Pattern observed: 

## Expected Behavior
**What should happen:**
When including include_dimensions=False - the balance sheet results misses the Property Plant and Equipment values on the balance sheet.  However, if the flag = True, the values exist

**Data validation rules:**


## Additional Context
- Any patterns or hypotheses about why the data might be wrong
-      Regex issue


**Impact Assessment:**
- [x ] Minor (affects specific edge case)
- [ ] Moderate (affects common use cases)  
- [ ] Major (affects core financial calculations)
- [ ] Critical (produces completely wrong results)

---
*Data quality issues are high priority and will be verified against official SEC filings. Accuracy is fundamental to EdgarTools.*

miruddfan avatar Jan 01 '26 15:01 miruddfan

Thank you for reporting this! Your issue has helped us identify an important architectural question about how we handle presentation vs dimensional data.

Investigation Status

Reclassified: P1 Investigation (was initially P0 CRITICAL)
Tracking: Beads edgartools-apoi

What We Found

The presentation explicitly includes your PPE value ($1,034M) with values populated:

# Raw presentation data shows:
'label': 'Property and equipment, net',
'values': {'instant_2024-12-31': 1034000000.0},  # Value IS here
'is_dimension': True  # But tagged as dimensional

The presentation is saying "show this line item with this value" - but the current include_dimensions=False logic filters it out because the underlying fact is dimensional.

The Real Issue

This isn't about what the default should be - it's about how include_dimensions interacts with the presentation.

Our design goal: Default view should display exactly what the presentation specifies (i.e., what appears on the face of the statement in the SEC filing).

Current behavior: include_dimensions=False filters out ALL dimensional facts, even those the presentation explicitly includes.

Expected behavior: include_dimensions=False should filter out dimensional breakdowns (like US vs Foreign) but keep items the presentation specifies.

Workaround (Use Now)

# Add include_dimensions=True to see all presentation data
balance_sheet = financials.balance_sheet()
df = balance_sheet.to_dataframe(include_dimensions=True, presentation=True)

Next Steps

We need to investigate:

  1. How to distinguish "presentation-specified" vs "breakdown" dimensional facts
  2. Whether fixing presentation alignment eliminates the need for dimension filtering
  3. The right architectural approach for render() vs to_dataframe() modes

Your report helped surface a deeper issue than initially apparent. We'll update this issue as we make progress on the investigation.

Estimated timeline: Research phase 1-2 days, then implementation TBD

dgunning avatar Jan 02 '26 01:01 dgunning

Fixed in Release 5.7.2

dgunning avatar Jan 02 '26 20:01 dgunning