Answers for "python numpy avg"

4

numpy average

import numpy as np 
a = np.arange(6).reshape(3,2) 
average = np.average(a)
Posted by: Guest on November-23-2020
0

python avg

my_list = [1,2,3,4]

import numpy as np
print("mean = ", np.mean(my_list))
Posted by: Guest on March-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language