Hey, use Scikit Learn train_test_split, like this -
xtrain, xvalid, ytrain, yvalid = train_test_split(bow[:split_num,:-1], train['label'], test_size=0.3, random_state=42)

Learn from this site - train_test_split 28
Thanks