Skip to main content

GitHub

PyPI PyPI - Status PyPI - Downloads GitHub last commit

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, and ctable() functions are made available for now
  • Added two html widgets to avoid displaying lengthy content

Installation

pip install summarytools

Dependencies

  1. python 3.6+
  2. pandas >= 1.4.0

Quick Start

the quick-start notebook is available in here or Open In Colab

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

Stargazers over time

Download files

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

Source Distribution

summarytools-0.4.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

summarytools-0.4.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file summarytools-0.4.0.tar.gz.

File metadata

  • Download URL: summarytools-0.4.0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for summarytools-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ab90368dacaff4c6f728a44d5d13327596e890b59dcc2e099ac3228eaa7fd09d
MD5 5068e1b996c93c5994d94cac446bdb93
BLAKE2b-256 a4424ce39508174c60ce405bf5947fe4612a086e4c400f3448c6d0c37e6c0b61

See more details on using hashes here.

Provenance

The following attestation bundles were made for summarytools-0.4.0.tar.gz:

Publisher: publish.yml on 6chaoran/jupyter-summarytools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file summarytools-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: summarytools-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for summarytools-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10e9ed5abb8e6341611d836dd3f445249305554757555d1c7d7078fe9a51a82f
MD5 611966894737661a44988cd72d0d9a43
BLAKE2b-256 359bd66745861c4b44bc4ffdacb924713169840b126768995dcb94a03f391197

See more details on using hashes here.

Provenance

The following attestation bundles were made for summarytools-0.4.0-py3-none-any.whl:

Publisher: publish.yml on 6chaoran/jupyter-summarytools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page