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

Numpy

backbone of ML

Numerical computations

Num - Numerical

py - Python

Numpy consists of 2parts:

  1. ndarray - n dimensional array
  1. Ufunc - Universal Functions
import numpy as np # defacto standard to label it as np
print(np.__version__)
1.19.2
arr = np.array( [1,2,3,4] ) # standard way by the programmers
print(arr)
[1 2 3 4]
arr1 = np.array( (1,2,3,4,563) )
print(arr1)
print(arr1.shape)
[ 1 2 3 4 563] (5,)