how to print all the indexes of a groupby in python pandas code example Example: pandas get group gp.get_group(key)