[Numpy-discussion] Adding an axis argument to numpy.unique

Joe Kington joferkington at gmail.com
Tue Aug 20 21:45:13 EDT 2013


>
> To me, `unique_rows` sounds perfect.  To go along columns: unique_rows(A.T)
>

Stéfan


Personally, I like this idea as well.  A separate `unique_rows` function,
which potentially takes an `axis` argument.  (Alternately,
`unique_sequences` wouldn't imply a particular axis.)

Of course, the obvious downside to this is namespace pollution.  The upside
would be discoverability.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20130820/71c2ab53/attachment.html>


More information about the NumPy-Discussion mailing list