Quick Answer: The simplest way to get row counts per group is by calling .size() , which returns a Series : df.groupby(['col1','col2']).size().
確定! 回上一頁