def _get_correlation_matrix(df, numeric_cat: List[str]=None):
    if (numeric_cat is None):
        numeric_cat = []
    nominal_columns = list(df.select_dtypes(include=['object', 'category']).columns)
    nominal_columns.extend((x for x in numeric_cat if (x not in nominal_columns)))
    corr_matrix = stats.calculate_correlation(df, nominal_columns=nominal_columns)
    return corr_matrix
def _get_correlation_matrix(df, numeric_cat: List[str]=None):
    if (numeric_cat is None):
        numeric_cat = []
    nominal_columns = list(df.select_dtypes(include=['object', 'category']).columns)
    nominal_columns.extend((x for x in numeric_cat if (x not in nominal_columns)))
    corr_matrix = stats.calculate_correlation(df, nominal_columns=nominal_columns)
    return corr_matrix