bivariate_panel

eap_pl.bivariate_panel(monthly, value, *, independent, spread_only=False)

Report means and quintile spreads from a monthly two-way sort.

Parameters

Name Type Description Default
monthly polars.DataFrame Monthly cell returns from bivariate_months(). required
value str Return column, usually EW or VW. required
independent bool Include averages and spreads in both sort dimensions for independently sorted portfolios. required
spread_only bool Return two abbreviated tables covering target portfolios averaged across controls and target spreads by control. False

Returns

Name Type Description
polars.DataFrame or tuple[polars.DataFrame, polars.DataFrame] A formatted panel of means and spreads, or two abbreviated panels when spread_only is true.