I\'m looking for a way to get a list of all the keys in a GroupBy object, but I can\'t seem to find one via the docs nor through Google.
There is definitely a way t
Use the option sort=False to have group key order reserved gp = df.groupby('group', sort=False)
gp = df.groupby('group', sort=False)