Check the group count
If the number of groups equals the number of rows, you grouped by a unique field and learned nothing. If it is one, you grouped by a constant. Both bugs produce a plausible looking table, so print the group count and compare it to what you expected.
Sort by the number, not the key
Sort the summary by the value you care about so the biggest cases are at the top. Alphabetical order hides the answer in the middle of a long list and makes a small dataset look like a large one.