PivotTable.js integration for Jupyter/IPython Notebook
Project description
``pivottablejs``: the Python module
===================================
Drag’n’drop Pivot Tables and Charts for `Jupyter/IPython Notebook`_,
care of `PivotTable.js`_
Installation
------------
``pip install pivottablejs``
Usage
-----
.. code:: python
import pandas as pd
df = pd.read_csv("some_input.csv")
from pivottablejs import pivot_ui
pivot_ui(df)
Advanced Usage
--------------
Include any `option to PivotTable.js's pivotUI() function`_ as a keyword argument.
.. code:: python
pivot_ui(df, rows=['row_name'], cols=['col_name'])
Independently control the output file path and the URL used to access it from Jupyter, in case the default relative-URL behaviour is incompatible with Jupyter's settings.
.. code:: python
pivot_ui(df, outfile_path="/x/y.html", url="http://localhost/a/b/x.html")
.. _Jupyter/IPython Notebook: http://jupyter.org/
.. _PivotTable.js: https://github.com/nicolaskruchten/pivottable
.. _valid option to PivotTable.js's pivotUI() function: https://github.com/nicolaskruchten/pivottable/wiki/Parameters#options-object-for-pivotui
===================================
Drag’n’drop Pivot Tables and Charts for `Jupyter/IPython Notebook`_,
care of `PivotTable.js`_
Installation
------------
``pip install pivottablejs``
Usage
-----
.. code:: python
import pandas as pd
df = pd.read_csv("some_input.csv")
from pivottablejs import pivot_ui
pivot_ui(df)
Advanced Usage
--------------
Include any `option to PivotTable.js's pivotUI() function`_ as a keyword argument.
.. code:: python
pivot_ui(df, rows=['row_name'], cols=['col_name'])
Independently control the output file path and the URL used to access it from Jupyter, in case the default relative-URL behaviour is incompatible with Jupyter's settings.
.. code:: python
pivot_ui(df, outfile_path="/x/y.html", url="http://localhost/a/b/x.html")
.. _Jupyter/IPython Notebook: http://jupyter.org/
.. _PivotTable.js: https://github.com/nicolaskruchten/pivottable
.. _valid option to PivotTable.js's pivotUI() function: https://github.com/nicolaskruchten/pivottable/wiki/Parameters#options-object-for-pivotui
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pivottablejs-0.5.0.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file pivottablejs-0.5.0.tar.gz
.
File metadata
- Download URL: pivottablejs-0.5.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
82f71623845dac4522985559a2638de104198544db47353d555f91f952c8a528
|
|
MD5 |
56da490fefc2bec2bbb9f1c08716f576
|
|
BLAKE2b-256 |
aee77da29b5ac5e4499d018714053a4c568a46114b79a0d236d95db4a9521f7f
|
File details
Details for the file pivottablejs-0.5.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pivottablejs-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
58364837a09224223739c3c4f8c16e38d7b1ebd42f9a02e5181efcbb201242f8
|
|
MD5 |
bbbd661daa5a61ad0f13db3175042755
|
|
BLAKE2b-256 |
1fe4de7da4b9788b4c18bec578fc38d03e6428343aa941418bf4287373a57d03
|