Problem in week8 numpy

How is np.mean(cric_data,axis=0) giving mean of all the three columns when we are mentioning only axis-0?

Hi,
Please refer to the explanation from this thread.

As per the pictorial representation, axis=0 means up the values in a particular direction, you can try doing axis=1 as well.

so axis 0 is for summing up vertically and get mean of the three types, and axis=1 is for horizontally summing up?

Yes, you got it right.

2 Likes