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)