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

It seems there is an issue with the dividend_yield. For example:

Equity(27067 [CBIO])
dividend_yield 2.3438
dividend_per_share 0.0000

The data is generated by the following code:

def before_trading_start(context, data)

fundamental_df = get_fundamentals(  
    query(  
        fundamentals.valuation_ratios.dividend_yield,  
        fundamentals.earnings_report.dividend_per_share,  
    )  
    .filter(fundamentals.valuation_ratios.pe_ratio < 10)  
    .filter(fundamentals.valuation_ratios.dividend_yield > 2)  
)  

print (fundamental_df)  
1 response

I'm seeing this as well:

pipe = CreatePipeline()
pipe.add(morningstar.valuation_ratios.dividend_yield.latest, "DividendYield")

start = '2017-2-5'
end = '2017-2-8'
res1 = run_pipeline(pipe, start, end)

res1.sort_values(by=['DividendYield'],ascending=False)