Drag’n’drop Pivot Tables and Charts for Jupyter/IPython Notebook, care of PivotTable.js
pip install pivottablejs
import pandas as pd
df = pd.read_csv("some_input.csv")
from pivottablejs import pivot_ui
pivot_ui(df)
Include any valid option to PivotTable.js's pivotUI() function as a keyword argument.
pivot_ui(df, rows=['row_name'], cols=['col_name'])
Independently control the output file path and the URL used to access it from Jupyter.
pivot_ui(df, outfile_path="x.html", url_prefix="http://localhost/path/")