#To use scikit-learn library, we have to convert the Pandas data frame to a Numpy array: X = df[['region', 'tenure','age', 'marital', 'address', 'income', 'ed', 'employ','retire', 'gender', 'reside']].values #.astype(float) X[0:5]