Back to Community
Problems with get_clean_factor_and_forward_returns function

So when i try to merge my pricing and factor data I get an error telling me the data can't be binned properly because it is too similar and it shows the values as just being repeats of the first entry in the factor series. I can run a pipeline that returns my factor just fine and get the asset pricing, but for some reason at the merge step it seems to think the only entry in the factor series is the first one. The factor in question is a fairly simple momentum based factor computed from close prices.

my_pipeline=make_pipeline()
factor_data = run_pipeline(my_pipeline,'2015-05-13','2018-05-20')
pricing_data = get_pricing(
symbols=factor_data.index.levels[1],
start_date='2015-05-13',
end_date='2019-06-25',
fields='open_price'
) merged_data = get_clean_factor_and_forward_returns(
factor=factor_data,
prices=pricing_data,
)