:: >>> 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