1. Home
  2. Docs
  3. numpy
  4. mean () average

mean () average

mean () ফাংশন একটি অ্যারের উপাদানগুলির গড় প্রদান করে।

import numpy as np
data = np.array([[1],[2],[3]]) # 1+2+3 =6/3 = 2 
print(data.mean())
Python

Output

2
Python

How can we help?