summarytools in jupyter notebook
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).
- Only
dfSummary
function is made available for now - Added two html widgets to avoid displaying lengthy content
Installation
pip install 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file summarytools-0.3.0.tar.gz
.
File metadata
- Download URL: summarytools-0.3.0.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b6f6e83e2590b81e0308568a68bc0fddc91e3467521c0033a20d62a0f66cdd7 |
|
MD5 | 4de7f381ab27c04ff1adac17a540abfa |
|
BLAKE2b-256 | be62fb3c5356bdbd25f2e78ec12591900f461c49f3092fe2a6283aee08cabd69 |
File details
Details for the file summarytools-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: summarytools-0.3.0-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c05e9f143f8ec7fdba1fa03a20fee807543b846ae715a13f5d63a5e957349516 |
|
MD5 | 194b5e760f5bf1c887e31113750075f6 |
|
BLAKE2b-256 | a52c6bd836c8ed95fbfe92760a9f0e316127a05ef7a1debd281a5f09dc34cc5a |