Open main menu

Wikibooks β

Python Programming/numpy

< Python Programming

Numpy is a numeric library for python.

NumPy: array processing for numbers, strings, records, and objects
PyPi Link
Pip command pip install numpy


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 PyPi (check sidebar)

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 alsoEdit