Given a list of Numpy array, the task is to find mean of every numpy array. Let’s see a few methods we can do the task.
Method #1: Using np.mean()
[2.0, 5.0, 8.0]
Method #2: Using np.average()
[12.0, 15.0, 18.0]
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.