we'll use python' syntax here for splitting the list the first points are going to go to the training setand the last everything after is going to go to test set you may remember this from our python basics earlier onwhere we covered the syntax to do thisand we'll do the same thing for purchase amounts hereusbjo qbhf qffet uftu qbhf qffet usbjoqvsdibtf"npvou uftuqvsdibtf"npvou now in our earlier sectionsi've said that you shouldn' just slice your dataset in two like thisbut that you should randomly sample it for training and testing in this case thoughit works out because my original data was randomly generated anywayso there' really no rhyme or reason to where things fell but in real-world data you'll want to shuffle that data before you split it we'll look now at handy method that you can use for that purpose of shuffling your data alsoif you're using the pandas packagethere' some handy functions in there for making training and test datasets automatically for you but we're going to do it using python list here so let' visualize our training dataset that we ended up with we'll do scatter plot of our training page speeds and purchase amounts tdbuufs usbjo usbjothis is what your output should now look like