Skip to content

API: Difference between GroupBy, DataframeGroupBy, and SeriesGroupBy #51270

@pyrito

Description

@pyrito

Hi all

I couldn't find a good answer to this on StackOverflow, but I was trying to understand what the conceptual difference were between GroupBy, DataFrameGroupby, and SeriesGroupBy were given that they are mentioned separately in the pandas documentation. I looked through the source code and it looks like GroupBy has an overlap of methods that can be used for both Dataframes and Series objects? However, it seems like most SeriesGroupBy methods are only for Series objects. Likewise, DataframeGroupBy methods are only for Dataframe objects. There seems to be some overlap with GroupBy and DataframeGroupBy methods, but not with SeriesGroupBy, which is why I'm a little confused.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions