[Numpy-discussion] bincount question

Alan G Isaac alan.isaac@gmail....
Tue Dec 21 12:53:47 CST 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?)

Thanks,
Alan Isaac



More information about the NumPy-Discussion mailing list