import re


def drop_columns(df, pattern=".*H2O"):
    """Drop all columns related to H2O using pattern matching"""
    cols_pattern = list(filter(re.compile(pattern).match, list(df.columns)))
    if cols_pattern:
        return df.drop(columns=cols_pattern, inplace=False)
    return df