Python - How to avoid error (Exceptions) in Pandas while still getting data ?
问题 I'm currently using Pandas to get options data from yahoo. It works fine until there is a stock that does not have options, at which point the program crashes. I attempted to create exceptions and just have it pass but without luck. How can I have the program identify stocks with no options and just skip? Thanks. The error I get is this: RemoteDataError: Data not available Here's the code (I used a stock with no options to test--> 'GHC'): from pandas_datareader.data import Options import