def subtract(df, y, exclude=None):
    """Subtract array-like y from dataframe columns.
    """
    if exclude is None:
        exclude = []
    df_subtracted = df.apply(
        lambda x: x - y
        if x.name not in exclude
        else x
    )

    return df_subtracted