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

Numpy Functions

5 useful numpy functions

The most important object defined in NumPy is an N-dimensional array type called ndarray. It describes the collection of items of the same type. By using different type of functions we can manupilate arrays, create arrays etc.

  • function 1 = add = np.char.add
  • function 2 = Transpose = transpose(arr,axes)
  • function 3 = swapaxis = swapaxis(arr,axis1,axis2)
  • function 4 = horizontal split = hsplit(arr,size)
  • function 5 = append = append(arr, values, axis)

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] Creating a new project "i-and-u-are-alwaystogether/numpy-array-operations" [jovian] Uploading notebook.. [jovian] Capturing environment.. [jovian] Committed successfully! https://jovian.ml/i-and-u-are-alwaystogether/numpy-array-operations

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