Association.detect_association

classmethod Association.detect_association(df, df_meta, associations=None, nan_associations=None)

Constructor that automatically generates a binding mask for the association based on a dataframe and masks all combinations of inputs that don’t appear in the dataframe.

Parameters
  • df (pd.DataFrame) – input DataFrame.

  • df_meta (DataFrameMeta) – extracted DataFrameMeta

  • associations (List[str]) – list of regular columns to check for associations.

  • nan_associations (List[str]) – list of columns to check nan value associations.

Returns

new Association object with automatically generated binding mask.

Return type

association