pandas.core.groupby.DataFrameGroupBy.get_group#

DataFrameGroupBy.get_group(name, obj=None)[source]#

Construct DataFrame from group with provided name.

Parameters
nameobject

The name of the group to get as a DataFrame.

objDataFrame, default None

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

Returns
same type as obj