seismometer.data.summaries.score_target_cohort_summaries $el.setAttribute('data-tooltip', 'Copy link to this element'), 2000)" aria-label="Copy link to this element" class="headerlink" data-tooltip="Copy link to this element" href="#seismometer-data-summaries-score-target-cohort-summaries">¶
- seismometer.data.summaries.score_target_cohort_summaries(dataframe, groupby_groups, grab_groups, entity_id_col) $el.setAttribute('data-tooltip', 'Copy link to this element'), 2000)" aria-label="Copy link to this element" class="headerlink" data-tooltip="Copy link to this element" href="#seismometer.data.summaries.score_target_cohort_summaries" x-intersect.margin.0%.0%.-70%.0%="activeSection = '#seismometer.data.summaries.score_target_cohort_summaries'">¶
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