pandas get size of each group code example Example: pandas get size of each group Click to copy# returns number of rows in each group as a Series df_group.size()