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

5 Numpy functions that you should be aware of

Numpy is a Python library mainly used for numerical computation. Numpy also has functions for linear algebra, matrices and other mathematical domains. The name Numpy is an acronym for "Numeric Python" or "Numerical Python".

  • np.flip
  • np.array_split
  • np.roll
  • np.compress
  • np.repeat

The recommended way to run this notebook is to click the "Run" button at the top of this page, and select "Run on Binder". This will run the notebook on mybinder.org, a free online service for running Jupyter notebooks.

!pip install jovian --upgrade -q
import jovian
jovian.commit(project='numpy-array-operations')
[jovian] Attempting to save notebook.. [jovian] Please enter your API key ( from https://jovian.ml/ ): API KEY: ········ [jovian] Updating notebook "izaanz/numpy-array-operations" on https://jovian.ml/ [jovian] Uploading notebook.. [jovian] Capturing environment.. [jovian] Committed successfully! https://jovian.ml/izaanz/numpy-array-operations

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