
Advanced Pivot Table in Python
- or -
Post a project like this814
€29/hr(approx. $34/hr)
- Posted:
- Proposals: 24
- Remote
- #3999397
- Awarded
Data analyst | Writer & Researcher | Statistician | Wikipedia editor & Publisher

Python | Data Analyst | Pandas | Seaborn | Matplotlib | Web Scraping | Automation

504990791273202775780829477962694576604821279206737464619612179973879783605982667043





Description
Experience Level: Expert
Hi there,
I need an advanced Pivot table in Python.
The function should take a pandas data frame as an input.
The function calculates Totals and Subtotals of a pivot table.
The function is flexible on the number of variables that are used as index and columns.
Totals and subtotals must be displayed at the top (for index) and on the left (for columns). Extra points if you can specify it in the function whether they are display left/right top/bottom.
It must be possible to specify whether Index Totals should be included.
It must be possible to specify whether Index Subtotals should be included.
It must be possible to specify whether Column Totals should be included.
It must be possible to specify whether Column Subtotals should be included.
It must be possible to label both totals and all subtotals.
Attached is sample code for two index and two columns as well an Excel with the current output (sheet have) as well as the maximum output (sheet want) when both totals (Index and Column) as well as both subtotals (Column1 and Index1) are activated.
Thank you very much.
Best,
Simon
I need an advanced Pivot table in Python.
The function should take a pandas data frame as an input.
The function calculates Totals and Subtotals of a pivot table.
The function is flexible on the number of variables that are used as index and columns.
Totals and subtotals must be displayed at the top (for index) and on the left (for columns). Extra points if you can specify it in the function whether they are display left/right top/bottom.
It must be possible to specify whether Index Totals should be included.
It must be possible to specify whether Index Subtotals should be included.
It must be possible to specify whether Column Totals should be included.
It must be possible to specify whether Column Subtotals should be included.
It must be possible to label both totals and all subtotals.
Attached is sample code for two index and two columns as well an Excel with the current output (sheet have) as well as the maximum output (sheet want) when both totals (Index and Column) as well as both subtotals (Column1 and Index1) are activated.
Thank you very much.
Best,
Simon

Simon G.
100% (1)Projects Completed
1
Freelancers worked with
1
Projects awarded
100%
Last project
20 Jul 2023
Liechtenstein
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies