jpcn-coder
4/8/2019 - 10:06 PM

media

media

#media das colunas
#np.array([[1, 1],
#          [3, 1],
#          [2, 3]])
np.mean(coordenadas,axis=0)
#resultado
            #2 , 1.67777
#media de linhas
np.mean(coordenadas,axis=1)
#          1.  2.  2.5
#utilizando = keepdims=True
np.mean(coordenadas,axis=1,keepdims=True)
#[[1. ]
# [2. ]
# [2.5]]