-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
API: Have pd.pivot mirror pivot instead of pivot_simple #22116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
cc @jreback |
There's also a quote in
but |
Reopening this one instead of opening a new issue. So PR #22209 changed the top-level One option is to deprecate the current behaviour (and from the passed values, I think we should be able to infer if the old or new behaviour is wanted). But, we maybe first need to discuss if we want to fully deprecate the old behaviour. |
Anyone have thoughts here? Is this blocking for 0.24.0? |
not blocking |
Closing as this change has persisted since 0.24.0 and no complaints so far. |
To pivot, there's currently:
pd.pivot_table / df.pivot_table
pandas/pandas/core/reshape/pivot.py
Line 28 in d30c4a0
df.pivot
pandas/pandas/core/reshape/reshape.py
Line 386 in d30c4a0
pivot_simple
(Importable at the top level aspd.pivot
)pandas/pandas/core/reshape/reshape.py
Line 411 in d30c4a0
I'm not sure why
pd.pivot
currently doesn't mirrordf.pivot
like howpd.pivot_table
mirrorsdf.pivot_table
, but it would clearer if these were in sync.The text was updated successfully, but these errors were encountered: