alvarobartt / investpy

Financial Data Extraction from Investing.com with Python
https://investpy.readthedocs.io/
MIT License
1.59k stars 374 forks source link

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

Open 1vecera opened 1 year ago

1vecera commented 1 year ago

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