I have a large two dimensional array arr which I would like to bin over the second axis using numpy. Because np.histogram flattens the array I\'m c
arr
np.histogram
You have to use numpy.histogramdd specifically meant for your problem