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
dfSummaryfunction is made available for now - Added two html widgets to avoid displaying lengthy content
Installation
pip install jupyter-summarytools
Dependencies
- python 3.6+
- pandas >= 1.4.0
Quick Start
the quick-start notebook is available in here
out-of-box dfSummary function 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
Metadata
Release files for jupyter-summarytools 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jupyter-summarytools-0.2.3.tar.gz | 14.0 kB | Without provenance | Details for jupyter-summarytools-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jupyter_summarytools-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for jupyter_summarytools-0.2.3-py3-none-any.whl |
Total release size: 26.1 kB
Release files / jupyter-summarytools-0.2.3.tar.gz
| Download URL | jupyter-summarytools-0.2.3.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
707f614bbcbdb68da99c8926df9200d37fd7dfd445713e5c643295f5617b4127
|
|
BLAKE2b-256 checksum How to use checksums |
a719d082d174b21d4e4b9fd92898b2ce27fda94a251b541cf186e3672f95258e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / jupyter_summarytools-0.2.3-py3-none-any.whl
| Download URL | jupyter_summarytools-0.2.3-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e93aa39d88df7f8607a897bc2144b43808f166dbb5f4c6c684f4d018990732bc
|
|
BLAKE2b-256 checksum How to use checksums |
af4f5b948e54709d499dfc3d890df36b1e2a924b761305b8a48619baf67c6b13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for jupyter-summarytools 0.2.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.