The dataset is mentioned as below The defines variable is exam . exam.shape = (29,2)
|Hours| |Pass|
0 |0.5 | |0|
1 |0.75| |0|
2 |1.00| |0|
3 |1.25| |0|
4 |1.50| |0|
Clear image is attached in the screenshot
X = exam.Hours
y = exam.Pass
X.shape = (29,) # The column number one is not mentioned
y.shape = (29,) # The column value is not mentioned
Expected Outcome
X.shape = (29,1)
y.shape = (29,1)