Skip to main content

This is a port of the summarytools library in R. It provides a simple exploratory data analysis report of a pandas dataframe.

Project description

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

See Github repo for more info: https://github.com/6chaoran/jupyter-summarytools

Dependencies

  1. python 3.6+
  2. pandas>=1.1.1
  3. numpy>=1.18.5
  4. matplotlib>=3.3.0
  5. ipython>=7.20.0

out-of-box dfSummary function will generate a HTML based data frame summary.

import pandas as pd
from summarytools.summarytools import dfSummary
titanic = pd.read_csv('./data/titanic.csv')
dfSummary(titanic)

collapsible summary

import pandas as pd
from summarytools.summarytools import dfSummary
titanic = pd.read_csv('./data/titanic.csv')
dfSummary(titanic, is_collapsible = True)

tabbed summary

import pandas as pd
from summarytools.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

Project details


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.1.4.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

summarytools-0.1.4-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: summarytools-0.1.4.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.5 Windows/10

File hashes

Hashes for summarytools-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4d0b5a375e2a552d2e63baa86d458836c66366f3338372ac9fb37a6c95f7d3a9
MD5 ec9fd623326b2a4379eddce774b9a399
BLAKE2b-256 29867c9cc8c43829ac495b7f56f5a24c7548c342898d23135c91274e15fd0302

See more details on using hashes here.

File details

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

File metadata

  • Download URL: summarytools-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.5 Windows/10

File hashes

Hashes for summarytools-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9feb9b99f9f32e94b78287520ca29cf96b627f5baf6e12f5a55058af8e7f4ab1
MD5 e6dad26dc28581cb7cce0285ad753681
BLAKE2b-256 9e44bbcb477ae2db109aa1e20e2d2c48a98e2972e77a6c0482c0c291bb103406

See more details on using hashes here.

Supported by

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