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

First Steps in NumPy

NumPy is one of the most famous and important Python libraries that allows working with arrays and using functions in domain of linear algebra, fourier transform, and matrices.

The focus of this brief introduction will be the study of these functions:

  • function 1 = Transpose = np.transpose(a, axes)
  • function 2 = Moveaxis = np.rollaxis(a, source, destination)
  • function 3 = Concatenate = np.concatenate((a1, a2, ...), axis=0, out=None)
  • function 4 = Split = np.split(ary, indices_or_sections, axis=0)
  • function 5 = Insert = np.insert(arr, obj, values, axis=None)

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] Updating notebook "alex-santosif/numpy-array-operations" on https://jovian.ml/ [jovian] Uploading notebook.. [jovian] Capturing environment.. [jovian] Committed successfully! https://jovian.ml/alex-santosif/numpy-array-operations

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