Skip to content

API: Have pd.pivot mirror pivot instead of pivot_simple #22116

@mroeschke

Description

@mroeschke

To pivot, there's currently:

pd.pivot_table / df.pivot_table

def pivot_table(data, values=None, index=None, columns=None, aggfunc='mean',

df.pivot

def pivot(self, index=None, columns=None, values=None):

pivot_simple (Importable at the top level as pd.pivot)

def pivot_simple(index, columns, values):

I'm not sure why pd.pivot currently doesn't mirror df.pivot like how pd.pivot_table mirrors df.pivot_table, but it would clearer if these were in sync.

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