I\'m using pandas to import a lot of data from a CSV file, and once read I format it to contain only numerical data. This then returns a list within a list. Each list then c
You can use random.shuffle and split list after that. For toy example:
random.shuffle
import random data = range(1, 11) random.shuffle(data) training = data[:5] testing = data[5:]
To get more information, read the docs.