Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to loop over statement #151

Open
onthegit opened this issue Nov 17, 2024 · 2 comments
Open

how to loop over statement #151

onthegit opened this issue Nov 17, 2024 · 2 comments
Labels
question Further information is requested

Comments

@onthegit
Copy link

Hello, I am new to python, and I was wondering how to loop over Statement and get the label, concept, ,value, and name (e.g us-gaap:DebtInstrumentCarryingAmount) ? Is this possible with this library?

@dgunning
Copy link
Owner

You can use statement.get_dataframe() and loop over the dataframe rows

df = income_statement.get_dataframe()
for row in df.iterrows():
    print(row)

@onthegit
Copy link
Author

@dgunning thanks. it looks like the row does not contain the dimensions and other attributes. Is there a way to get them while looping over statements? Thank you.

@dgunning dgunning added the question Further information is requested label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants