(domain, attributes=(), class_vars=(), metas=())
return Domain(attributes, class_vars, metas)
Construct a new domain with new columns added to the specified place

    Parameters
    ----------
    domain : Domain
        source domain
    attributes
        list of variables to append to attributes from source domain
    class_vars
        list of variables to append to class_vars from source domain
    metas
        list of variables to append to metas from source domain

    Returns
    -------
    Domain
Construct a new domain with new columns added to the specified place
Construct a new domain with new columns added to the specified place
def add_columns(domain, attributes=(), class_vars=(), metas=()):
    """Construct a new domain with new columns added to the specified place

    Parameters
    ----------
    domain : Domain
        source domain
    attributes
        list of variables to append to attributes from source domain
    class_vars
        list of variables to append to class_vars from source domain
    metas
        list of variables to append to metas from source domain

    Returns
    -------
    Domain
    """
    attributes = domain.attributes + tuple(attributes)
    class_vars = domain.class_vars + tuple(class_vars)
    metas = domain.metas + tuple(metas)
    return Domain(attributes, class_vars, metas)
def add_columns ( domain , attributes = ( ) , class_vars = ( ) , metas = ( ) ) : attributes = domain . attributes + tuple ( attributes ) class_vars = domain . class_vars + tuple ( class_vars ) metas = domain . metas + tuple ( metas ) return Domain ( attributes , class_vars , metas )