best way to find similar items in python
Posted
by user230911
on Stack Overflow
See other posts from Stack Overflow
or by user230911
Published on 2010-04-02T03:46:21Z
Indexed on
2010/04/02
3:53 UTC
Read the original article
Hit count: 380
I have 1M numbers:N[], and 1 single number n, now I want to find in those 1M numbers that are similar to that single number, say an area of [n-10, n+10]. what's the best way in python to do this? Do I have to sort the 1M number and do an iteration? Thanks
© Stack Overflow or respective owner