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

Numpy operations

Assignment 2 of the course Zero to Pandas, from jovian.ml

In this notebook I will introduce some of my most used functions in numpy.

Numpy is a package built to enable array and matrix operations and do it in a very fast way.

The selected functions perform separations of the content (array_split) , joining of the content (stack), fill with random values (randint), create transformation diagonal matrices (eye) and evaluate complex mathematical functions with conditions (piecewise).

  • np.array_split()
  • np.stack()
  • np.random.randint()
  • np.eye()
  • np.piecewise()

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='pandas-02-numpy-array-operations')
[jovian] Attempting to save notebook.. [jovian] Updating notebook "oriol-ayats/pandas-02-numpy-array-operations" on https://jovian.ml/ [jovian] Uploading notebook.. [jovian] Capturing environment.. [jovian] Committed successfully! https://jovian.ml/oriol-ayats/pandas-02-numpy-array-operations

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