What the Groups Mean

What the Groups Mean: Grouping with groupby, Describing Each Group.

Updated

  1. Grouping with groupby (Apprentice): groupby sorts a table's rows into groups that share a value, such as a neighborhood, works out one number for each group (a sum, a mean, a count) and hands back one row per group, which answers "which one sold the most?" in a line instead of a filter for every group.
  2. Describing Each Group (Journeyman): A clustering is only useful once each group is described, so you groupby the cluster label to get each group's means and size, compare them with the whole table's, name each group in plain words from what its numbers say, and state the limits, that other features or another k would give other groups and that a member isn't their group.