According to the Fundamentals reference, dividend_yield is something I can use. However, I'm getting an error when I try to use it as a Factor in my algorithm. Help is appreciated.
Code:
from quantopian.pipeline.data import Fundamentals
def initialize(context):
...
dividend_yield = Fundamentals.dividend_yield.latest.rank(ascending=False, mask=my_filter)
Error:
AttributeError: type object 'Fundamentals' has no attribute 'dividend_yield'
Any insights into why this issue is occurring or what I'm doing wrong?