[Numpy-discussion] bincount question

Alan G Isaac alan.isaac at gmail.com
Tue Dec 21 13:53:47 EST 2010


     >>> np.bincount([])
     Traceback (most recent call last):
       File "<stdin>", line 1, in <module>
     ValueError: The first argument cannot be empty.

Why not?
(I.e., why isn't an empty array the right answer?)

Alan Isaac

More information about the NumPy-Discussion mailing list