NumPy is Python's fundamental package for scientific computing. It is a library that provides a multidimensional array object, various derived objects (such as masked arrays and matrices), and an assortment of routines for fast operations on arrays, including mathematical, logical, shape manipulation, sorting, selecting, I/O, discrete Fourier transforms, basic linear algebra, basic statistical operations, random simulation and much more.
NumPy is used at the core of many popular packages in the world of Data Science and machine learning.
Theofficial NumPy documentation offers multiple thorough manuals including a getting started manual.
Python Land offers a short and freegetting started with NumPy tutorial and a comprehensive paidNumPy course called 'a gentle, hands-on introduction to NumPy'
There's a complete but outdated (2006) manual by the principal author of Numpy, Travis Oliphant, isavailable for free (although donations are accepted).
Many examples of NumPy usage can be found athttp://wiki.scipy.org/Numpy_Example_List
numpy Example
from numpy import *from PIL import Imagear = ones((100,100),float32)ar = ar * 100for i in range(0,100): ar[i,:] = 100 + (i * 1.5)im = Image.fromarray(ar,"F")
NumPy (last edited 2023-05-05 12:42:41 byeriky)
Unable to edit the page? See the FrontPage for instructions.