NumPy: Array Axis

As we know, that in mathematics dimension is defined as the minimum number of coordinates needed to specify any point within space. It is very similar to axes in a cartesian coordinate system.  In Numpy dimension is also known as the axis.

Numpy Axis is the type of direction through which we can start the iteration. In Numpy every operation has a specific process of iteration through which the operation proceeds. In the most simple terms when we have more than a 1-D array then the concept of the axis comes into role. 


As in a 2-D array, it has 2-Axis. The first axis is vertically downward i.e. across rows, and the second is horizontal i.e. across columns.

Numpy:Array Axis