[Numpy-discussion] bincount([], minlength=2) should work right?

Skipper Seabold jsseabold@gmail....
Sat Feb 25 16:16:06 CST 2012


On Sat, Feb 25, 2012 at 5:13 PM, Alan G Isaac <alan.isaac@gmail.com> wrote:
> On 2/25/2012 4:44 PM, James Bergstra wrote:
>> bincount([]) makes no sense,
>
> I disagree:
> http://permalink.gmane.org/gmane.comp.python.numeric.general/42041
>
>
>> but if a minlength argument is provided,
>> then the routine should succeed.
>
> Definitely!
>

There's a PR to fix this here.

https://github.com/numpy/numpy/pull/84

Skipper


More information about the NumPy-Discussion mailing list