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

Skip Montanaro skip.montanaro at gmail.com
Mon Jul 4 19:38:31 EDT 2016


> This is trivial in pandas. a simple groupby.

Oh, cool. Precisely the sort of solution I was hoping would turn up.
Straightforward, easy for a novice data slinger like me to understand,
and likely a bazillion times faster than the straightforward version.

Skip





More information about the NumPy-Discussion mailing list