Can you explain me the code

Sir , i am facing problem with this code
Plz explain me the code in the second block as i am not able to load the files as it is showing error,file not found on the directory

This block is just used to separate out train and test data from the given dataset.
Please take a look at dataset first, and then try to understand this code snippet.

1 Like