add train_test_split function to DataFrame

Use random sample to split a DataFrame to train set and test set which ready for cross validation.