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).

Installation

pip install jupyter-summarytools

Dependencies

  1. python 3.6+
  2. 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)

Source distribution for jupyter-summarytools 0.2.3
File Size Uploaded
jupyter-summarytools-0.2.3.tar.gz 14.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyter-summarytools 0.2.3
File Interpreter ABI Platform
jupyter_summarytools-0.2.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.1

1 release file

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page