Skip to main content

Pandas and Polar DataFrames as interactive DataTables

Project description

ITables logo

CI codecov.io Pypi Conda Version pyversions Code style: black Jupyter Widget Streamlit App

This packages changes how Pandas and Polars DataFrames are rendered in Jupyter Notebooks. With itables you can display your tables as interactive DataTables that you can sort, paginate, scroll or filter.

ITables is just about how tables are displayed. You can turn it on and off in just two lines, with no other impact on your data workflow.

The itables package only depends on numpy, pandas and IPython which you must already have if you work with Pandas in Jupyter (add polars, pyarrow if you work with Polars DataFrames).

Documentation

Browse the documentation to see examples of Pandas or Polars DataFrames rendered as interactive DataTables.

Quick start

Install the itables package with either

pip install itables

or

conda install itables -c conda-forge

Activate the interactive mode for all series and dataframes with

from itables import init_notebook_mode

init_notebook_mode(all_interactive=True)

and then render any DataFrame as an interactive table that you can sort, search and explore: df

If you prefer to render only selected DataFrames as interactive tables, use itables.show to show just one Series or DataFrame as an interactive table: show

Since ITables v1.0, the jQuery and DataTables libraries and CSS are injected in the notebook when you execute init_notebook_mode with its default argument connected=False. Thanks to this the interactive tables will work even without a connection to the internet.

If you prefer to load the libraries dynamically (and keep the notebook lighter), use connected=True when you execute init_notebook_mode.

Supported environments

ITables works in all the usual Jupyter Notebook environments, including Jupyter Notebook, Jupyter Lab, Jupyter nbconvert (i.e. the tables are still interactive in the HTML export of a notebook), Jupyter Book, Google Colab and Kaggle.

You can also use ITables in Quarto HTML documents, and in RISE presentations.

ITables works well in VS Code, both in Jupyter Notebooks and in interactive Python sessions.

Last but not least, ITables is also available as

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

itables-2.2.3.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

itables-2.2.3-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file itables-2.2.3.tar.gz.

File metadata

  • Download URL: itables-2.2.3.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for itables-2.2.3.tar.gz
Algorithm Hash digest
SHA256 d1987c2f69b348d63d8184c30e05bd25710997a37894cf7b57b6e0a4ea969c10
MD5 6464277d4911e033aa12dcade56f2b4b
BLAKE2b-256 8f1d830ec0ed4640b59987d49278cb3f76b9d7c2467c895a2af94fbbe94aa29e

See more details on using hashes here.

Provenance

The following attestation bundles were made for itables-2.2.3.tar.gz:

Publisher: publish.yml on mwouts/itables

Attestations:

File details

Details for the file itables-2.2.3-py3-none-any.whl.

File metadata

  • Download URL: itables-2.2.3-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for itables-2.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 987919a3b8dfdac2cbc727949b0972de61bfddfabd372bfa0f7f3f34399ab197
MD5 8ff91330ef7b8db2ae6db21f245fc2bd
BLAKE2b-256 e3c26bd82dd46a100dfea7732510c46ffa0f450c283ef23096b83a2807914f5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for itables-2.2.3-py3-none-any.whl:

Publisher: publish.yml on mwouts/itables

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page