DataFrame Summary Tools in Jupyter Notebook
This is python version of summarytools, which is used to generate standardized and comprehensive summary of dataframe in Jupyter Notebooks.
The idea is originated from the summarytools R package (https://github.com/dcomtois/summarytools).
- Only
dfSummary,freq, andctable()functions are made available for now - Added two html widgets to avoid displaying lengthy content
Installation
pip install summarytools
Dependencies
- python 3.6+
- pandas >= 1.4.0
Quick Start
the quick-start notebook is available in here or
out-of-box dfSummary, freq and ctable functions will generate a HTML based data frame summary.
import pandas as pd
from summarytools import dfSummary
titanic = pd.read_csv('./data/titanic.csv')
dfSummary(titanic)
collapsible summary
import pandas as pd
from summarytools import dfSummary
titanic = pd.read_csv('./data/titanic.csv')
dfSummary(titanic, is_collapsible = True)
tabbed summary
import pandas as pd
from summarytools import dfSummary, tabset
titanic = pd.read_csv('./data/titanic.csv')
vaccine = pd.read_csv('./data/country_vaccinations.csv')
vaccine['date'] = pd.to_datetime(vaccine['date'])
tabset({
'titanic': dfSummary(titanic).render(),
'vaccine': dfSummary(vaccine).render()})
Export notebook as HTML
when export jupyter notebook to HTML, make sure Export Embedded HTML extension is installed and enabled.
Using the following bash command to retain the data frame summary in exported HTML.
jupyter nbconvert --to html_embed path/of/your/notebook.ipynb
Stargazers over time
Release files for summarytools 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| summarytools-0.4.0.tar.gz | 21.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| summarytools-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.1 kB
Release files / summarytools-0.4.0.tar.gz
| Download URL | summarytools-0.4.0.tar.gz |
|---|---|
| Size | 21.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab90368dacaff4c6f728a44d5d13327596e890b59dcc2e099ac3228eaa7fd09d
|
|
BLAKE2b-256 checksum How to use checksums |
a4424ce39508174c60ce405bf5947fe4612a086e4c400f3448c6d0c37e6c0b61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logRelease files / summarytools-0.4.0-py3-none-any.whl
| Download URL | summarytools-0.4.0-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10e9ed5abb8e6341611d836dd3f445249305554757555d1c7d7078fe9a51a82f
|
|
BLAKE2b-256 checksum How to use checksums |
359bd66745861c4b44bc4ffdacb924713169840b126768995dcb94a03f391197
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency log