pandas.core.groupby.GroupBy.get_group
- GroupBy.get_group(name, obj=None)[source]
-
Construct DataFrame from group with provided name.
- Parameters
-
- name:object
-
The name of the group to get as a DataFrame.
- obj:DataFrame, default None
-
The DataFrame to take the DataFrame out of. If it is None, the object groupby was called on will be used.
- Returns
-
- group:same type as obj
© 2008–2021, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.3.4/reference/api/pandas.core.groupby.GroupBy.get_group.html