seismometer.data.summaries.score_target_cohort_summaries¶
- seismometer.data.summaries.score_target_cohort_summaries(dataframe, groupby_groups, grab_groups, entity_id_col)¶
Generate a dataframe of summary counts from the input dataframe. Also, summarizes by additional summary levels in groupby_groups.
- Parameters:
dataframe (pd.DataFrame) – The input dataframe.
groupby_groups (list[str]) – Selections to groupby when generating summaries (attribute, score bins, target, etc.).
grab_groups (list[str]) – Columns to grab while summarizing.
entity_id_col (str) – The column name for the dataframe column containing the entity identifier.
- Returns:
A dataframe of summary counts.
- Return type:
pd.DataFrame