Last answered:

16 Aug 2022

Posted on:

27 Feb 2022

0

Explain Ques 22 from exercise

Hi !
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

2 answers ( 0 marked as helpful)
Posted on:

16 Aug 2022

0

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

Posted on:

16 Aug 2022

3

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.




Submit an answer