-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Make DataFrame.pivot
accepts a list of column names as values
#17160
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
@dclong : Thanks for the issue! Have you tried "df.pivot_table" ? I think this might better address your needs. |
@gfyoung: It seems that |
@dclong : Ah, gotcha. I'll tag this as an enhancement for now, though then again I'm not sure that that's how |
I think this is sensible to allow. PRs welcome! |
Hello @jorisvandenbossche, I would love to work on this, how can I start? |
@ibrahimsharaf Did you already go through the contributing guide (to set up development environment and such: http://pandas.pydata.org/pandas-docs/stable/contributing.html). If not, you should start with that. For this issue: I would recommend to first write some tests for the desired new functionality, and then you can look at changing the |
Hello. I am new to this library. I would like to work on this issue. Any sort of help would be appreciated. |
Problem description
Currently
DataFrame.pivot
accepts eitherNone
or a column name for the optionvalues
but not a list of column names.It is not convenient if I want to create a pivot table for multiple columns at the same time. Of course, we can pass
None
tovalues
and then select columns we want to. But this is not as convenient.The text was updated successfully, but these errors were encountered: