Describe in detail a pandas DataFrame
Project description
Summo
Summo is a Python package to summarize a dataset information
import summo
import pandas as pd
df = pd.DataFrame(
{
"a": [1, 2, None, 2, None],
"b": [4, 5, 6, 5, None],
"c": ["a", "b", None, "d", None],
}
)
summary = summo.summary(df)
summary
is a dict
that looks like
{
"table": {
"rows": 5,
"columns": 3,
"rows_duplicated": 0,
"rows_all_na_count": 1,
"rows_all_na_pct": 0.2,
},
"columns": {
"a": {
"na_count": 2,
"na_pct": 0.4,
"unique": False,
"dtype": "float64",
"median": 2.0,
"mean": 1.666666,
},
"b": {
"na_count": 1,
"na_pct": 0.2,
"unique": False,
"dtype": "float64",
"median": 5.0,
"mean": 5.0,
},
"c": {
"na_count": 2,
"na_pct": 0.4,
"unique": False,
"dtype": "object",
},
},
}
Installation
pip install summo
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
summo-0.0.6.tar.gz
(4.0 kB
view hashes)
Built Distribution
summo-0.0.6-py3-none-any.whl
(3.5 kB
view hashes)