dabl.plot.plot_regression_categorical

dabl.plot.plot_regression_categorical(X, target_col, types=None, **kwargs)[source]

Plots for categorical features in regression.

Creates box plots of target distribution for important categorical features. Relevant features are identified using mutual information.

For high cardinality categorical variables (variables with many categories) only the most frequent categories are shown.

Parameters
Xdataframe

Input data including features and target.

target_colstr or int

Identifier of the target column in X.

typesdataframe of types, optional

Output of detect_types on X. Can be used to avoid recomputing the types.