atreadw1492 / yahoo_fin

Scrape stock price history from new (Spring 2017) Yahoo Finance layout
MIT License
286 stars 125 forks source link

Fix issue handling 'nan' floats in get_top_crypto. #41

Closed cmeyer closed 3 years ago

cmeyer commented 3 years ago

Sometimes nan's are returned instead of strings when converting the html page to a table in the get_top_crypto method.

This patch forces everything to a string for the '% Change' column.

Please note that the line endings in this PR may be inconsistent with the original file.