Define test_index and train_index as empty list:
test_index = []
Then use append method:
test_index.append(test[i])
CLICK HERE to find out more related problems solutions.
Define test_index and train_index as empty list:
test_index = []
Then use append method:
test_index.append(test[i])
CLICK HERE to find out more related problems solutions.