-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
Description
To pivot, there's currently:
pd.pivot_table / df.pivot_table
pandas/pandas/core/reshape/pivot.py
Line 28 in d30c4a0
def pivot_table(data, values=None, index=None, columns=None, aggfunc='mean', |
df.pivot
pandas/pandas/core/reshape/reshape.py
Line 386 in d30c4a0
def pivot(self, index=None, columns=None, values=None): |
pivot_simple
(Importable at the top level as pd.pivot
)
pandas/pandas/core/reshape/reshape.py
Line 411 in d30c4a0
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.