Is it possible to calculate a median of one column based on groupings of another column without using pandas (and keeping my data in a Numpy array)?
For example, if this is the input:
arr = np.array([[0,1],[0,2],[0,3],[1,4],[1,5],[1,6]])
I want this as the output (using first column to group, and then taking the median of the second column:
ans = np.array([[0,2],[1,5]])