code: def calculate_assoc_matrix(data, corr_method):
      corr_matrix = abs(
          data.corr(corr_method)
      )  # get submatrix for only numerical variables
      numerical_variables = corr_matrix.columns
      categorical_variables = list(
          set(data.columns) - set(numerical_variables)
      )
      n = len(data)
      cat_assoc_matrix = calculate_cat_assoc_matrix(
          data, categorical_variables, n
      )  # get submatrix for only categorical variables
      cat_num_assoc_matrix = calculate_cat_num_assoc_matrix(  # get submatrix for mixed variables
          data, categorical_variables, numerical_variables, n
      )
      tmp_matrix = pd.concat(
          [corr_matrix, cat_num_assoc_matrix.T], axis=1
      )
      tmp_matrix_2 = pd.concat(
          [cat_num_assoc_matrix, cat_assoc_matrix], axis=1
      )
      assoc_matrix = pd.concat([tmp_matrix, tmp_matrix_2])
      return assoc_matrix
  
file_path: DALEX/python/dalex/dalex/aspect/utils.py
imports: import numpy
  import pandas
  import warnings
  from .None import checks
  from ..None import _global_checks
label_desc: Use image node_id 3 for calling a global function with example usage: calculate_assoc_matrix(data, corr_method) and returns: assoc_matrix