pandas.api.typing.SeriesGroupBy.get_group

pandas 3.1.1 · GroupBy · method

Retrieve the original observations belonging to the specified group key.

Call syntax

pd.api.typing.SeriesGroupBy.get_group(name)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
name Required
Positional or keyword
object

Set a name or identify the named object used by the operation.

Returns

Series or DataFrame