#Select the features and labels features=df.loc[:,df.columns!='label'].values[:,1:] labels=df.loc[:,'label'].values