dataspliter python code example
Example 1: split string python
file='/home/folder/subfolder/my_file.txt'
file_name=file.split('/')[-1].split('.')[0]
Example 2: splitting data into training and testing sklearn
train_features, test_features, train_labels, test_labels =
train_test_split(features, labels)
#This is using sklearn