Skip to content
Discussion options

You must be logged in to vote

Hi @amismithmoritz — apologies for the confusion! The with_dimensions() method was added in v5.14.0, so it's not available on your v5.11.2. Upgrading should fix it:

pip install --upgrade edgartools

After upgrading, both approaches will work:

# Option 1: Include all dim_* columns without filtering
revenue = (xbrl.facts.query()
    .by_concept("Revenue")
    .with_dimensions()
    .to_dataframe())

# Option 2: Filter to a specific dimension (also includes dim_* columns automatically)
revenue = (xbrl.facts.query()
    .by_concept("Revenue")
    .by_dimension("StatementBusinessSegmentsAxis")
    .to_dataframe())

In the meantime, glad to hear by_dimension() is working for you — that's been ava…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by amismithmoritz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants