[Numpy-discussion] converting discrete data to unique integers

David Warde-Farley dwf at cs.toronto.edu
Wed Nov 4 15:22:32 EST 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