Learn practical skills, build real-world projects, and advance your career
Updated 3 years ago
import numpy as np
1D ----> [1, 2, 3, 4, 5] ----> Axis 0
2D ----> [[1, 2, 3],
[4, 5, 6],
[7, 1, 0]] ----> Axis 1
Axis 1 is taken on upside of matrix pointing from left to right
Axis 0 is taken as from upside to downside of the matrix
For Example there is a matrix
matrix = np.zeros((3, 3))