If you run the code below, you will see that the partition.index.levels references the levels for the entire dataframe, not just the group.
partition.index.levels
This became an is