Hi,
I attached a piece of code below. I am wondering how I can output both factor_ranks and factors as part of my pipeline. Right now, I can output each individual but I would like to combine them so that there are two columns for each rank, one for the factor value and one for it's rank.
factors = make_factors()
def make_pipeline(factors):
factor_ranks = {name_rank: f().rank(mask=base_universe) for name_rank, f in factors.iteritems()}
factors = {name: f(mask=base_universe) for name, f in factors.iteritems()}
factor_ranks['Sector'] = Sector()
return Pipeline(columns=factor_ranks,
screen=base_universe )