This packages changes how Pandas and Polars DataFrames are rendered in Python notebooks and applications.
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 depends only 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).
Quick Start#
Installation#
Install the itables
package with either
pip install itables
or
conda install itables -c conda-forge
Activate ITables#
Activate the interactive mode in notebook-like environment with init_notebook_mode
:
import itables
itables.init_notebook_mode()
After this, any Pandas or Polars DataFrame, or Series, is displayed as an interactive DataTables, which lets you explore, filter or sort your data.
df = itables.sample_dfs.get_countries(html=False)
df
Loading ITables v2.4.1-dev from the init_notebook_mode cell...
(need help?) |
Read more about the different context where you can use ITables.
Try ITables on Binder#
You can run the examples above (or any other documentation page) directly on , without having to install anything on your end - just click on the rocket icon at the top of the page.
Licence#
ITables is developed by Marc Wouts on GitHub, under a MIT license.
ITables is a wrapper for datatables.net which is developed by Allan Jardine (sponsor him!), also under a MIT license.