rsokl/Learning_Python

Error in section "Introducing the ND-array"

apezzotti86 opened this issue · 1 comments

There is an error in the below text. Taking mean value over three distinct columns should use axis = 0. If you manually compute the averages, axis = 1 takes the average over rows.

Let’s take the mean value over the three distinct columns in our data:

np.mean(x, axis=1)
array([ 1., 4., 7.])

rsokl commented

Thank you for reporting this! This is now fixed (2a81ef9).