morningstar
morningstar copied to clipboard
KeyRatiosDownloader.download('AAPL') throws IndexError: list index out of range
Hi Linwoodc3,
I love your work (plus Peter too). Thank you for creating this Good Morning project.
I'm new to Python and learning how to use your API to download key ratios from ms.
Today I played with KeyRatiosDownloader.download('AAPL')
(without pymysql cnn), and I got a list index out of range
exception. Base on the stack trace, it's pointing toward:
def _parse_frames(tables: list, response_structure: list) -> list:
~
period_start = tables[0][1].ix[0][1] #this line.
~
Do you have suggestions for me on how to fix this? Sorry I'm new to Python. Thank you for your help!