The scatter() operate plots a single dot for each observation. It desires two arrays of a similar length, just one to the values from the x-axis, and just one for values over the y-axis:
two.See corresponding entry in https://bookmarkbirth.com/story17659561/5-simple-techniques-for-scatter