                                            by_group=by_group,                                            demeaned=demeaned,                                            group_adjust=group_adjust)      @lru_cache(0)     def calc_factor_