Answers for "mean of a matrix in numpy"

5

numpy mean 2 arrays

mean_array = np.mean(np.array([array_1, array_2]), axis=0)
Posted by: Guest on November-21-2021
-1

python mean ndarray

# define ndarray a
a = np.array([[1, 2], [3, 4]])
# get the mean 
np.mean(a, axis=None)
Posted by: Guest on April-07-2020

Python Answers by Framework

Browse Popular Code Answers by Language