[Tutor] sorting distances for nearest neighbor

R. Alan Monroe amonroe at columbus.rr.com
Fri Aug 29 12:30:05 CEST 2014


> How do you sort distances to prepare for nearest neighbor when the
> results returned look like this

Have you read up on the "key" parameter for Python's sort() function?
You can use that, along with split() to do this.

Alan



More information about the Tutor mailing list