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. packages in requirements.txt

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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: summarytools-0.1.3.tar.gz
  • Upload date:
  • Size: 6.6 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.3.tar.gz
Algorithm Hash digest
SHA256 35335d7df51df86125b7dd6e6c424df57e7069b2b2bfcb2bf46974d804e272c9
MD5 4f7cdec6fec5456c46fac5b6addae6cc
BLAKE2b-256 2df2e868b45d2a878c58c813d05f2bc3fa23ac5445befc7c5168aacdac115ec7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: summarytools-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d3c3d5facfbe1b6626dce556b8df2beff0560a94640c08f01b756711cd6fa9a1
MD5 876ab1ded8bb032f64c1ef1740b2d16b
BLAKE2b-256 5d1230447a4cfbdef48e4284e98fefa3573f7d2598cf4092d9a35aa592e49ca9

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