Why did we reshape the array Y for scatter plot?

Why did we reshape the array Y for scatter plot?

hey @lintasheelkumar ,
The reason is , before the shape was ( 399,1 ) and scatter plot can’t handle this shape , as it says that each element is another array with a single element , hence we need to reshape it into a single array of n items , so that scatter plot can easily read it and work upon it.

I hope this helps.