Jun-12-2018, 03:21 PM
(Jun-12-2018, 10:00 AM)volcano63 Wrote:(Jun-12-2018, 09:32 AM)Mekire Wrote: Hmm, I was looking for something like that and didn't find what I need.
I'm surprised there isn't a sort offindgroups
innumpy
itself (and there may well be), but I didn't have any luck finding it.
There'spandas.DataFrame.groupby
- so that will work too
import pandas as pd df = pd.DataFrame(sys_func) np.array([g.max() for _, g in df.groupby(df[0])])Closer to home - but still not pure-numpy
solution
I actually love this one! Thanks y'all!