def get_nth_group(grouped, nth):
    """Returns the dataframe of the nth group in a pandas groupby object.
    Not to be confused with the nth per group call.
    """
    return grouped.get_group(list(grouped.groups.keys())[nth])