```
df = DataFrame({"cat":Categorical([1,2,3,4], levels=[1,2,3,4,5], "a":range(4)}
len(df.groupby("cat")) == len(df["cat"].levels)
```