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

Manipulate your Numpy array for beginner

In this notebook you will learn the basic functions to manipulate your Numpy array so you can make your own Numpy array

NumPy is the fundamental package for scientific computing in Python. It is a Python library that provides a multidimensional array object, various derived objects, and an assortment of routines for fast operations on array.

these are some of the Numpy array manipulation that we will try to work with:

  • shape() : Return the shape of an array
  • transpose() : Reverse or permute the axes of an array: returns the modified array
  • concatenate() : Join a sequence of arrays along a existing axis
  • split() : Split an array into multiple sub-arrays as views into a new array
  • tile() : Construct an array by repeating an array the number of times given by repetitions

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] Error: The current API key is invalid or expired.
[jovian] Please enter your API key ( from https://jovian.ai/ ): API KEY:
························································································································································································································································································································
[jovian] Updating notebook "acothaha/numpy-array-operations" on https://jovian.ai/ [jovian] Committed successfully! https://jovian.ai/acothaha/numpy-array-operations

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