[Numpy-discussion] Picking rows with the first (or last) occurrence of each key

Juan Nunez-Iglesias jni.soma at gmail.com
Tue Jul 5 01:03:59 EDT 2016


On 4 July 2016 at 7:27:47 PM, Skip Montanaro (skip.montanaro at gmail.com)
wrote:

Hashing it probably wouldn't work, too
great a chance for collisions.


If the string is ASCII, you can always interpret the bytes as part of an 8
byte integer. Or, you can map unique values to consecutive integers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160705/2d1cb486/attachment.html>


More information about the NumPy-Discussion mailing list