I\'m trying to break down a program line by line. Y is a matrix of data but I can\'t find any concrete data on what .shape[0] does exactly.
Y
.shape[0]
In Python shape() is use in pandas to give number of row/column:
shape()
Number of rows is given by:
train = pd.read_csv('fine_name') //load the data train.shape[0]
Number of columns is given by
train.shape[1]