def multi_input_support(X, data):
    """Transformation for X

    WHAT: Automatically interprets flexible input methods
    for the x variable, and vectorize if the values are string.

    HOW: x_transform('text', df)

    INPUT: A pandas dataframe and list with two ints, list of ints,
    list of string values (column labels), single integer, a single string
    value.

    OUTPUT: a dataframe with the selected columns. In the case of string
    values and a single string label as x input, vectorized text.

    """
    if type(X) == list:
        if len(X) == 2:
            if type(X[0]) == int:
                x = data.ix[:, X[0]:X[1]]
    if type(X) == list:
        if len(X) > 2:
            if type(X[0]) == int:
                x = data.iloc[:, (X)]
    if type(X) == list:
        if type(X[0]) == str:
            x = data.loc[:, (X)]
    if type(X) == int:
        x = data.iloc[:, (X)]
    if type(X) == str:
        x = data[X]
    return x
