Skip to content

Sequence of line items #722

@mpreiss9

Description

@mpreiss9

I've been chasing down a very difficult bug. In my code I detected a substantial difference in my final output (valuation) when running with edgartools 5.21.1 vs. 5.25.1. In tracing this, I've concluded that the sequencing of data in dataframes has changed. Since my code often relies on the order of the rows, I need to better understand how edgartools sequences xbrl rows, especially in Notes and Disclosures.

  • Is there some logic to the sequencing of rows?
  • Is it the intention to maintain stability of sequence from version to version?

For an example of the problem, I direct you to the Q3 2025-07-01 to 2025-09-01 10-Q for BSX. The Note SUPPLEMENTAL BALANCE SHEET INFORMATION has a different sequence between version 5.21.1 and later versions (I don't know when it started to differ but it's different for sure in 5.25.1).

Not only is the sequence different between versions, but it actually seems to be differently WRONG in both cases. For some reason Licensing arrangements data is mixed into Other long-term liabilities. If you look at the original html that doesn't belong there.

Legal reserves | 154  
Accrued income taxes | 403
Contingent consideration | 301
Operating lease liabilities | 445
Deferred revenue | 359
Other | 728
 Total | $ | 2,390

In 5.21.1 two rows of $7 and a few zero rows are inserted between 301 and 445. In 5.25.1 THREE rows of $7 are inserted. This is only one example of what I'm talking about. It's not even clear to me where this 7million of licensing stuff is coming from, as that's not part of the Note at all! The only place I could find such an item was in a completely different section of the 10-Q!

If the sequence of xbrl rows provided by edgartools is random or unstable then I don't think I'll be able to continue to work with it as I will have no way to assemble correct statements.

My recommendation would be to guarantee that the rows are provided in the same sequence as presented on the paper/html filing. I assume that would be as derived from the presentation tree.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions