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

Random Numpy Functions for Noobs

Getting started

NumPy (derived, ostenibly, from the portmanteux of "number" and "python") is a library for working with numbers in Python. One of the neat things that it's good at is ~arrays~. Here are a couple of arbitrarily chosen array manipulations or other kinds of functions we'll walk through.

  • np.reshape
  • ndarray.T
  • np.concatenate
  • np.stack
  • function 5

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 "nauzk/numpy-array-operations" on https://jovian.ai [jovian] Uploading notebook.. [jovian] Uploading additional files... [jovian] Committed successfully! https://jovian.ai/nauzk/numpy-array-operations

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