Jump to content
Wikibooks The Free Textbook Project

Python Programming/numpy

From Wikibooks, open books for an open world

This is the current revision of this page, as edited by DannyS712 (discuss | contribs) at 06:05, 16 April 2020 (Update syntaxhighlight tags - remove use of deprecated <source> tags). The present address (URL) is a permanent link to this version.

Revision as of 06:05, 16 April 2020 by DannyS712 (discuss | contribs) (Update syntaxhighlight tags - remove use of deprecated <source> tags)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Numpy is a numeric library for python.

Installation

[edit | edit source ]

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 http://sourceforge.net/projects/numpy/files/.

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

python setup.py install

In case of error:

Histogram

[edit | edit source ]
importnumpy
mydata = [numpy.random.normal(0,1) for i in range(10000) ]
h, n = numpy.histogram( mydata , 100, (-5,5) )
This section is a stub.
You can help Wikibooks by expanding it.

See also

[edit | edit source ]

AltStyle によって変換されたページ (->オリジナル) /