Skip to content

ENH: #3335 Pivot table support for setting name of margins column. #10296

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

Conversation

lexual
Copy link
Contributor

@lexual lexual commented Jun 6, 2015

ref #3335.

Adds margin_column parameter to pivot_table so that user can set it to
something other than 'All'.
Raises ValueError exception if there is a conflict between the value of
margin_column and one of the other values appearing in the indices of
the pivot table.

…column.

ref pandas-dev#3335.

Adds margin_column parameter to pivot_table so that user can set it to
something other than 'All'.
Raises ValueError exception if there is a conflict between the value of
margin_column and one of the other values appearing in the indices of
the pivot table.
@lexual lexual force-pushed the issue_3335_pivot_handle_all_for_margins branch from c819d21 to 618110c Compare June 6, 2015 08:13
def pivot_table(data, values=None, index=None, columns=None, aggfunc='mean',
fill_value=None, margins=False, dropna=True):
fill_value=None, margins=False, dropna=True,
margins_column=DEFAULT_MARGIN_COLUMN_NAME):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to have another variable for this, just set it here in the constructor.

how about call this margins_name

@jreback jreback added Reshaping Concat, Merge/Join, Stack/Unstack, Explode API Design labels Jun 7, 2015
@jreback
Copy link
Contributor

jreback commented Jun 7, 2015

this is ok. in general, try to avoid reformatting other text unless its germane as its hard to see what you are changing. If you want to reformat, pls do that in a separate PR.

@jreback
Copy link
Contributor

jreback commented Aug 5, 2015

can you rebase / update

@jreback
Copy link
Contributor

jreback commented Oct 11, 2015

@lexual can you rebase / update

@jreback
Copy link
Contributor

jreback commented Nov 10, 2015

closing, but if you'd like to update, pls reopen

@jreback jreback closed this Nov 10, 2015
@lexual
Copy link
Contributor Author

lexual commented Nov 12, 2015

Hi, I've got some availability again to try and help out again.

I'll see if I can rebase this and try again.

@lexual
Copy link
Contributor Author

lexual commented Nov 12, 2015

Doesn't appear I can re-open though.

Maybe I have to open a brand new one ??

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

Successfully merging this pull request may close these issues.

2 participants