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

5 Numpy functions I found interesting

NumPy is a python library used for working with arrays. It also has functions for working in domain of linear algebra, fourier transform, and matrices. NumPy was created in 2005 by Travis Oliphant. It is an open source project and you can use it freely. NumPy stands for Numerical Python.
Interesting fact: Operations in Numpy are much faster because they take advantage of parallelism, while traditional for loop can't make use of it.

Today we'll talk about these fascinating 5 functions that are available in NumPy:

  • Padding Arrays (numpy.pad)
  • Return a sorted copy of an array (numpy.sort)
  • Compute the determinant of an array (numpy.linalg.det)
  • Compute the arithmetic mean along the specified axis (numpy.mean)
  • Counts the number of non-zero values in the array (numpy.count_nonzero)
!pip install jovian --upgrade -q
import jovian
jovian.commit(project='numpy-array-5-operations')
[jovian] Attempting to save notebook.. [jovian] Please enter your API key ( from https://jovian.ml/ ): API KEY: ········ [jovian] Updating notebook "alexx-mipt/numpy-array-5-operations" on https://jovian.ml/ [jovian] Uploading notebook.. [jovian] Capturing environment.. [jovian] Committed successfully! https://jovian.ml/alexx-mipt/numpy-array-5-operations

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