-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: More subtotals / margins in pivot_table #4817
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
Hi, This issue hasn't been touched for a few years. Does this continue to represent a useful enhancement? For clarity: MI is referring to Related: #3149 |
let's repurpose this to an example in the reshape.rst (or in the cookbook.rst). want to do a PR? |
There is a related issue, in that if you just use |
Actually, the way I understand it is a bit different. When we speak about analysing data, there is often a so called "drill-down" involved, which will naturally result in an MI. But then, I actually want intermediate aggregates as well as shown in the following picture, e.g.: |
#3149 is it resolved?? |
I'm a data analyst trying to move away from Excel and this would be a very useful feature to have when pivoting. |
Hello, I came across this problem too. I started to learn python and pandas so that I can replace Excel, however still trying to figure out the pivot tables subtotal with MI. |
Hi, I would like to work on this issue if available. Please let me know! |
@jxb4892 I've assigned you, so now you own it. If you decide to not continue, let us know so we can remove the assignment |
Perhaps there should be some argument to pivot_table to include subtotals of MI columns and rows, i.e. not just margins.
http://stackoverflow.com/questions/15570099/pandas-pivot-tables-row-subtotals
The text was updated successfully, but these errors were encountered: