hI,I create a factor which would be 0 or 1. I want to use Alaphalens to see how effective this factor is.
My code is like:
factor_data = alphalens.utils.get_clean_factor_and_forward_returns(result['price_leo'],
but I still get error : ValueError: Bin edges must be unique: array([ 0., 0., 0., 0., 0., 0.])
So I guess, I cannot analyze boolean factor?