Some key points
-
Suppose you have a DataFrame named as
df, thendf.groupby(‘param’)will create multiple groups based on the parameter you provide. -
Each group is a DataFrame.
-
For each group,
group[0]is the string ofparam, whereasgroup[1]is the group’s actual data in the form DataFrame.
How to get a specific group’s data
df …