Re: [Numpy-discussion] [Suggestion] Labelled Array
Just something I tried with pandas: >>> image array([[[ 0, 1, 2, 3, 4], [ 5, 6, 7, 8, 9], [10, 11, 12, 13, 14], [15, 16, 17, 18, 19]], [[20, 21, 22, 23, 24], [25, 26, 27, 28, 29], [30, 31, 32, 33, 34], [35, 36, 37, 38, 39]], [
[Numpy-discussion] [Suggestion] Labelled Array
>>> sum(x) array([9, 12, 15]) The operations would create a new axis for label indexing. You could think of it as a collection of masks, one for each label. I don't know a way to make something like this efficiently without a loop. Ju