Training set : A set which is used to train a model.
Test set : A set which is a subset of training set and is used to test the trained model.
Additional resources:
Amazon
Blogger, Engineer & Entrepreneur
dataset = [library alias name].read_csv(‘file.csv’)
x = dataset.iloc[:,:-1].values
y = dataset.iloc[:, -1].values
In the above lines, read_csv and iloc are functions.
[:,:-1] is slicing range of the values.
Syntax
import [library] as []