How to change a Pandas dataframe into feature vector? I have a Pandas dataframe with 10 columns, 9 of which are features to be used to predict the 10th column.

How is it ossible to convert this Pandas dataframe into X and y vectors to use in a linear regression problem?
If you have your dataframe loaded as the variable df, you can simply use this

X = df[['A','B','C']]
y = df['Z']


where A, B and C are your independent variables and Z is your dependent variable.