what is the statement m = X.shape[0] doing?
Doubt in knn function that is def knn
Hey @muditarya31, X.shape[0] will give you the number of rows in your dataset i.e. the first coordinate of your X.shape.
So you are basically storing the number of training examples in m variable !
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.