inspectpd
is collection of utilities for columnwise summary,
comparison and visualisation of pandas
dataframes. The package patches
in the following methods for pandas objects:
.inspect_types()
summary of column types.inspect_mem()
summary of memory usage of columns.inspect_na()
columnwise prevalence of missing values.inspect_cor()
correlation coefficients of numeric columns.inspect_imb()
feature imbalance of non-numeric.inspect_num()
summaries of numeric columns.inspect_cat()
summaries of non-numeric
You can install inspectpd
using pip
with
pip install inspectpd
Simply import the package and use the methods on a pandas dataframe:
import pandas as pd
import inspectpd
# example data set just for illustration
from inspectpd import starwars
# categorical features summary
starwars.inspect_cat()
You can also get a quick visualisation of the summary too:
# get a plot of the categorical features
starwars.inspect_cat().view()