How to change a Pandas dataframe into feature vector?
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.