Introduction to NumPy

Introduction to NumPy


NumPy (“Numerical Python” or Numeric Python”) is an open source module of Python that provides functions for fast mathematical computation on arrays and matrices.

To use NumPy, it is needed to import. Syntax for that is:

>>>import numpy as np

here np, is an alias for numpy which is optional

NumPy arrays come in two forms:

  • 1-D array – also known as Vectors.
  • Multidimensional arrays – Also known as Matrices.