[Numpy-discussion] np.histogram on arrays.

Éric Depagne eric at depagne.org
Tue Mar 29 10:13:36 EDT 2011

> FWIW, have you considered to use
> http://docs.scipy.org/doc/numpy/reference/generated/numpy.histogramdd.html#
> numpy.histogramdd
> Regards,
> eat
I tried, but I get a 
/usr/lib/pymodules/python2.6/numpy/lib/function_base.pyc in 
histogramdd(sample, bins, range, normed, weights)
    370     # Reshape is used so that overlarge arrays

    371     # will raise an error.

--> 372     hist = zeros(nbin, float).reshape(-1)
    374     # Compute the sample indices in the flattened histogram matrix.

ValueError: sequence too large; must be smaller than 32

so I suspect my array is too big for histogramdd

Un clavier azerty en vaut deux
Éric Depagne                            eric at depagne.org

More information about the NumPy-Discussion mailing list