Explain Ques 22 from exercise
I am unable to understand why we need to choose axis =1 for columns in array_3D ?
As i understand, 0 is for rows and 1 for columns
There's a mistake in the video, its showing axis 0 is column, i too got confused when i saw this and later on applied same in practice exam
Hope the 365 team corrects the video
I was confused at the beginning, but then I tried some examples and found that -
Actually, the axis doesn't represent the rows or columns, we have to think it as of layers. For a 2d array, the first layer(axis=0) is the column, and the second(axis=1) is the row. For the 3d array, axis 0 is the matrices inside it (first layer) inside it, axis 1 is the columns of that matrix, and axis 2 is the row of that matrix.