import logging


def remove_columns_containing(df, text):
    """
    Remove all columns that do contain the text argument within their name. 
    """
    if not isinstance(text, list):
        text = [text] 

    drop_columns = set() 
    for c in df.columns: 
        for t in text: 
            if t in c:
                drop_columns.add(c)

    logging.info("Removing columns that contain {}: {}".format(text, drop_columns))

    return df.drop(columns=list(drop_columns))