NumPy - Tutorial
NumPy stands for Numerical Python, is a library for the Python programming language. It provides support for large, multi-dimensional arrays and matrices, along with a large collection of routines for fast operations on arrays. It is a open-sourced software and has many contributors. The earlier version of NumPy was Numeric which was created by Jim Hugunin along with contributions from several other developers. In 2005, with lot of modifications, Travis Oliphant created NumPy by incorporating features of Numarray into Numeric.
This tutorial is intended for software programmers interested in studying basic and advanced concepts of NumPy. This tutorial covers all topics of NumPy which includes ndarray, array creation, indexing & slicing, broadcasting, array manipulation, operators, and functions etc. We believe in learning by examples, therefore, each topic is explained with lots of examples that makes you learn NumPy in a very easy way. Along with this, almost all examples can be executed online which provides better understanding of the package and helps you to learn it faster. The classical example of creating an array of ones is mentioned below for the illustration purpose:
#array of ones import numpy as np Arr = np.ones((2,2)) print(Arr)
The output of the above code will be:
[[ 1. 1.] [ 1. 1.]]
A prior exposure of any programming language would be an added advantage while following this tutorial but it is designed in such a way that anyone can start from scratch.