[Numpy-discussion] converting discrete data to unique integers

David Warde-Farley dwf@cs.toronto....
Wed Nov 4 14:22:32 CST 2009


On 4-Nov-09, at 3:09 PM, David Warde-Farley wrote:

> But I wonder if there's a better way to do this. Anyone ever run into
> this problem before?

Obviously I find the answer right after I hit "send". unique(d,  
return_inverse=True).

Sorry for the noise.

David


More information about the NumPy-Discussion mailing list