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

Display NaN instead of Raising error for missing financial summary information #599

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

1vecera
Copy link

@1vecera 1vecera commented Sep 6, 2022

Hi all,

so far, if there is financial information missing e.g. earnings like in:
https://www.investing.com/equities/glencore-financial-summary

image

the investpy tries to convert them to float and raises an error, I've added a try block to display nans instead. I think it's fair to let the user decide if nans are okay values and raise an error on their side instead of introducing error='surpass' argument.

Happy to discuss.

Best

Dani

@1vecera 1vecera changed the title Handle error if some information is missing Display NaN instead of Raising error for missing financial summary information Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant