Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No, numpy bincount only works with one-dimensional arrays. If you have a 2D array, you can flatten it into a 1D array using the flatten() method or the ravel() function before using numpy bincount.