pandas.core.groupby.GroupBy.get_group

GroupBy.get_group(self, name, obj=None)[source]

Construct NDFrame from group with provided name.

Parameters
nameobject

the name of the group to get as a DataFrame

objNDFrame, default None

the NDFrame to take the DataFrame out of. If it is None, the object groupby was called on will be used

Returns
groupsame type as obj
Scroll To Top