.. _pivottablejsrst: ============ pivottablejs ============ .. only:: html **Links:** :download:`notebook `, :downloadlink:`html `, :download:`PDF `, :download:`python `, :downloadlink:`slides `, :githublink:`GitHub|_doc/notebooks/pivottablejs.ipynb|*` pivottable from a notebook with pivottablejs. .. code:: ipython3 import pandas df = pandas.DataFrame([dict(a="a", b="b", x=1.0, y=2.0), dict(a="aa", b="bb", x=10.0, y=20.0)]) df .. raw:: html
a b x y
0 a b 1.0 2.0
1 aa bb 10.0 20.0
.. code:: ipython3 from pivottablejs import pivot_ui pivot_ui(df, height=200) .. raw:: html