Python Programming/numpy

From Wikibooks, open books for an open world
Jump to: navigation, search

Numpy is a numeric library for python.


It's provided with the main Linux distribution, however it can be installed through the Debian package python-numpy. On Windows, it can be downloaded on

Then, once the .zip unpacked, the installation is done by entering into the console:

python install

In case of error:


import numpy
mydata = [numpy.random.normal(0,1) for i in range(10000) ]
h, n = numpy.histogram( mydata , 100, (-5,5) )

See also[edit]