I copy pasted that file but here it’s showing the shapes of both files are (399, 1) but actually the shape of xdata is (399, 3) & shape of ydqta is (399, 2). So whata should I do now?
Knn implementation
Hey @nirjona12001, if you would look at the video, you would observe that sir have removed the first column from both xdata.csv and ydata.csv file. So final shapes of both the csv files are : (399,2) and (399,1). Originally or initially the shape of your xdata.csv and ydata.csv should be (399,3) and (399,2) respectively.
I hope this resolves your doubt 
Happy Learning 
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.