Skip to content
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

DOC: pivot function #16578

Open
jesrael opened this issue Jun 2, 2017 · 6 comments
Open

DOC: pivot function #16578

jesrael opened this issue Jun 2, 2017 · 6 comments
Assignees
Labels
Docs good first issue Reshaping Concat, Merge/Join, Stack/Unstack, Explode

Comments

@jesrael
Copy link

jesrael commented Jun 2, 2017

In docs DataFrame.pivot is a bit unclear, what means object:

index : string or object, optional

Column name to use to make new frame’s index. If None, uses existing index.

columns : string or object

Column name to use to make new frame’s columns

values : string or object, optional

Is it Multiindex ? Or None ? Or Series?

SO question

@jesrael
Copy link
Author

jesrael commented Jun 2, 2017

Also I check pandas.pivot

index : ndarray
Labels to use to make new frame’s index

columns : ndarray
Labels to use to make new frame’s columns

values : ndarray
Values to use for populating new frame’s values

Input are Series or numpy arrays ?

@jreback
Copy link
Contributor

jreback commented Jun 2, 2017

DataFrame.pivot

string or array-like, optional

pandas.pivot

array-like is acceptable input

If you want to do a PR would be great. even better would be to add some more examples!

@jreback jreback added this to the Next Major Release milestone Jun 2, 2017
@jreback jreback changed the title Docs - pivot function DOC: pivot function Jun 2, 2017
@jreback
Copy link
Contributor

jreback commented Jun 2, 2017

has a comment w.r.t. doc-string as well: #8160

@oranjik
Copy link

oranjik commented Aug 17, 2018

This issue is solved by deleting dataframe.pivot part in v.0.24.0, so it would be better to close this issue

@mroeschke mroeschke added the Reshaping Concat, Merge/Join, Stack/Unstack, Explode label Jun 12, 2021
@mroeschke mroeschke removed this from the Contributions Welcome milestone Oct 13, 2022
@slimkevo
Copy link

slimkevo commented Aug 2, 2024

take

@slimkevo
Copy link

slimkevo commented Aug 2, 2024

take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs good first issue Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

No branches or pull requests

7 participants