Last answered:

24 Dec 2021

Posted on:

24 Dec 2021

1

doubt on Axis ///////////

Hi,
please clarify this doubt on axis; why axis has different meaning in numpy.

while learning array mean, it was told that axis = 0 means column.
image.png

but during this lesson axis = 0 denotes row:
image.png

1 answers ( 0 marked as helpful)
Posted on:

24 Dec 2021

2

Hi,

got little clarity from this blog -
https://www.sharpsightlabs.com/blog/numpy-axes-explained/

It says axis = 0 means this will go downsides.
Hope we should read axis = 0 as 'sum of all 1st values of Rows, all second value of rows.....'  while calculating sum of array.

please confirm am I right.

Submit an answer