Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
FUNDAMENTALS - KEY ERROR 0

This is the error I get:

KeyError: 0
There was a runtime error on line 246.

Here is the code I added that is giving me there error:

def before_trading_start(context, data):

fundamental_df = get_fundamentals(  
    query(  
        fundamentals.share_class_reference.exchange_id  
    )  
    .filter(fundamentals.share_class_reference.exchange_id == "NAS")  
)  

context.stocks = (fundamental_df)  

What do?

I am trying to generate a df of stocks that are only from the NASDAQ.