Can I propose pivotablejs?
It provides horizontal and vertical pivoting, filtering, graphing, sorting, and lots of different aggregations all in just a few lines in a Jupyter notebook (tip: right-click the [pop out] link and open in a new tab for increased flexibility)
!pip install pivottablejs
from pivottablejs import pivot_ui
pivot_ui(df, outfile_path='pivottablejs.html')
https://towardsdatascience.com/two-essential-pandas-add-ons-499c1c9b65de