Hi,
The below written code can help you to split your dataset into training and testing samples:
from sklearn.model_selection import train_test_split
trainingSet, testSet = train_test_split(df, test_size=0.2)
Test size may differ depending on the percentage of data you want to put in your testing and training samples