how to get best fit line when we have data on vertical line?
Instead of fitting y as a function of x, in this case you should fit x as a function of y.
I started learning Linear Regression and I was solving this problem. When i draw scatter plot between independent variable and dependent variable, i get vertical lines. I have 0.5M sample data. X-axis data is given within range of let say 0-20. In this case I am getting multiple target value for same x-axis point hence it draws vertical line.
My question is, Is there any way i can transform the data in such a way that it doesn't perform vertical line and i can get my model working. There are 5-6 such  independent variable that draw the same pattern. 
Thanks in advance.