df_p

hhpy.ds.df_p(x: str, group: str, df: pandas.core.frame.DataFrame, hue: str = None, agg_func: str = 'mean', agg: bool = False, n_quantiles: int = 10)[source]

returns a DataFrame with the p value. See hypothesis testing. :param x: name of column to evaluate :param group: name of grouping column :param df: pandas DataFrame :param hue: further split by hue level :param agg_func: standard agg function, passed to pd.DataFrame.agg :param agg: whether to include standard aggregation :param n_quantiles: numeric columns will be automatically split into this many quantiles [optional] :return: pandas DataFrame containing p values