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 jupyter-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 jupyter-summarytools-0.2.3.tar.gz
.
File metadata
- Download URL: jupyter-summarytools-0.2.3.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 707f614bbcbdb68da99c8926df9200d37fd7dfd445713e5c643295f5617b4127 |
|
MD5 | 116b77cc6d041b2af682d8167783659f |
|
BLAKE2b-256 | a719d082d174b21d4e4b9fd92898b2ce27fda94a251b541cf186e3672f95258e |
File details
Details for the file jupyter_summarytools-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: jupyter_summarytools-0.2.3-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e93aa39d88df7f8607a897bc2144b43808f166dbb5f4c6c684f4d018990732bc |
|
MD5 | 6d53bfe83ccb3babf4dfbc5878991aa9 |
|
BLAKE2b-256 | af4f5b948e54709d499dfc3d890df36b1e2a924b761305b8a48619baf67c6b13 |