Jupyter Notebook extension to levarage pandas DataFrames by integrating DataTables JS.
Project description
Jupyter DataTables
Jupyter Notebook extension to levarage pandas DataFrames by integrating DataTables JS.
About
Data scientists and in fact many developers work with pd.DataFrame
on daily basis to interpret data to process them. In my typical workflow. The common workflow is to display the dataframe, take a look at the data schema and then produce multiple plots to check the distribution of the data to have a clearer picture, perhaps search some data in the table, etc...
What if those distribution plots were part of the standard DataFrame and we had the ability to quickly search through the table with minimal effort? What if it was the default representation?
The jupyter-datatables uses jupyter-require to draw the table.
Installation
pip install jupyter-datatables
And enable the required extensions
jupyter nbextension install --sys --py jupyter_require
jupyter nbextension enable jupyter-require
Usage
import numpy as np
import pandas as pd
from jupyter-datatables import init_datatables_mode
init_datatables_mode()
That's it, your default pandas representation will now use Jupyter DataTables!
df = pd.DataFrame(np.abs(np.random.randn(50, 8)), columns=list(string.ascii_uppercase[:8]))
We can also handle wide tables with ease.
df = pd.DataFrame(np.abs(np.random.randn(50, 20)), columns=list(string.ascii_uppercase[:20]))
The future plans:
-
provide distribution plots for different data types
-
allow custom operations on the table:
- edit column name
- edit column type
-
handle multi index
-
handle nested data
-
improve plotting:
- performance and efficiency
- customizable
- resizable
- dockable
- draggable to a Jupyter cell (??)
-
[stretch goal] increased performance and space efficiency by server-side processing -- lazy loading
Author: Marek Cermak macermak@redhat.com, @AICoE - Project Thoth
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
Built Distribution
File details
Details for the file jupyter-datatables-0.1.0.tar.gz
.
File metadata
- Download URL: jupyter-datatables-0.1.0.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de40e38bc364b53a16a03e0439ae9a094c77648de2c02e5c8714a5ca1ff1ee66 |
|
MD5 | 486ac9cdbfaa6742979b485a8b548209 |
|
BLAKE2b-256 | 47872f9268794c06d781ae963a8544fd8da3422837fd46b8cc99b8e077cd0635 |
File details
Details for the file jupyter_datatables-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: jupyter_datatables-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b33b443a51d4df0300ecdb1cb1aef8aaf0d67106d92d874d69e6b938721e04d1 |
|
MD5 | 5cdd54a48ead0a41f20781398eadf71c |
|
BLAKE2b-256 | b4d99edd2805ebe251163076e85e1b38d88d6f0f33e505be2a50cbc0a35c78f4 |