Learn practical skills, build real-world projects, and advance your career

Working with Numpy array functions

Introduction

NumPy is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays The ancestor of NumPy, Numeric, was originally created by Jim Hugunin with contributions from several other developers. In 2005, Travis Oliphant created NumPy by incorporating features of the competing Numarray into Numeric, with extensive modifications. NumPy is open-source software and has many contributors. Wikipedia

  • Function 1: numpy.reshape(array, shape, order = ‘C’)
  • Function 2: numpy.eye(R, C = None, k = 0, dtype = type <‘float’>)
  • Function 3: numpy.diag(a, k=0)
  • Function 4: numpy.zeros()
  • Function 5: numpy.full_like(a, fill_value, dtype = None, order = ‘K’, subok = True)
# instal
!pip install jovian --upgrade -q
import jovian
jovian.commit(project='numpy-array-operations')
[jovian] Attempting to save notebook..

Let's begin by importing Numpy and listing out the functions covered in this notebook.