Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
get_fundamentals

I need help recreating the output of the following without using get_fundamentals. Thanks.

longs = get_fundamentals(  
    # Retrieve data based on PE ratio and economic sector  
    query(fundamentals.earnings_ratios.diluted_eps_growth,  
          fundamentals.asset_classification.morningstar_sector_code,  
          fundamentals.share_class_reference.symbol)  

    # Filter where PE ratio is greater than 20  
    .filter(fundamentals.earnings_ratios.diluted_eps_growth > 6)

    # Filter where PE ratio is less than 50  
    .filter(fundamentals.earnings_ratios.diluted_eps_growth < 10000)  
    ).T  
1 response

Note for anyone else running into this post:

get_fundamentals was deprecated in favor of using pipelines and Morningstar. See this link for more info on using pipelines with Morningstar.