Re: [Numpy-discussion] Axis argument to np.unique

2016-06-15 Thread Benjamin Root
That seems like the only reasonable behavior, but I will admit that my initial desire is essentially a vectorized "unique" such that it returns the unique values of the stated axis. But that isn't possible because there can be different number of unique values in the given axis, resulting in a ragg

[Numpy-discussion] Axis argument to np.unique

2016-06-15 Thread Martino Sorbaro
Hi all, I've opened a new pull request (https://github.com/numpy/numpy/pull/7742) trying to revive a previous one that was left abandoned (#3584, by another contributor), regarding the possibility of adding an 'axis=' argument to numpy.unique. There had been a debate (http://numpy-discussion.10968