Reputation: 91
Given a pandas
GroupBy
object, for example, set up like so
group = df.groupby([['col_1', 'col_2']])
Is there any way to return the column names on which that data has been grouped e.g.
group.get_grouped_columns()
which might return
['col_1', 'col_2']
Upvotes: 1
Views: 49