Glossary: pandas Beyond the Basics
size vs count
Also written: size(), count(), as_index=False
After `groupby`, `.size()` counts all rows per group, missing values included, while `.count()` counts only non-missing values. Counting a column of order numbers with `count` therefore counts orders.