lisa.datautils.df_find_redundant_cols#

lisa.datautils.df_find_redundant_cols(df, col, cols=None)[source]#

Find the columns that are redundant to col, i.e. that can be computed as df[x] = df[col].map(dict(...)).

Parameters:
  • df (pandas.DataFrame) – Dataframe to analyse.

  • col (str) – Reference column

  • cols (str or None) – Columns to restrict the analysis to. If None, all columns are used.