def _retain_from_list(x, exclude):
    """Returns the features to retain. Used in
    conjunction with H2OTransformer classes that
    identify features that should be dropped.

    Parameters
    ----------

    x : iterable of lists
        The list from which to exclude

    exclude : array_like
        The columns to exclude


    Returns
    -------

    The names of the features to keep
    """
    return [i for i in x if i not in exclude]