Function to get group from gini index. Used in categorical variable From: https://freakonometrics.hypotheses.org/20736

get_levels_categoric(column, Y)

Arguments

column

is the column

Y

values