Different outputs are generating even though the same outputs are expected

##### Title

##### Question

np.mean(L,0) it will calculate the mean along the columns.

Instead of doing that, i was executed in two different lines by taking np.mean(L[0]) and np.mean(L[1]) then the expected output is as similar as the former one. but i am getting different results in both the scenarios. it was the same scenario for standard deviation also. What are the possible reasons for it??

Python-3.4.3 Statistics 11-12 min 40-50 sec

__Answers:__

np.mean(L, 0) will not give you the same result as np.mean(L[0]) and np.mean(L[1]) because L[0] and L[1] give you the 0th and 1st indexed rows of the 2D array L

Login to add comment