# Data Analysis with Python Projects - Mean-Variance-Standard Deviation Calculator

### Tell us what’s happening:

Describe your issue in detail here.
it is showin error in importing numpy and return statement

import numpy as np

def calculate(list):

avg=np.array([np.mean(list,axis=1),np.mean(list,axis=2),np.mean(list)])
var=np.array([np.variance(list,axis=1),np.variance(list,axis=2),np.variance(list)])
std=np.array([np.std(list,axis=1),np.std(list,axis=2),np.std(list)])
max=np.array([np.max(list,axis=1),np.max(list,axis=2),np.max(list)])
min=np.array([np.min(list,axis=1),np.min(list,axis=2),np.min(list)])
sum=np.array([np.sum(list,axis=1),np.sum(list,axis=2),np.sum(list)])
calculations={
‘mean’:avg,
‘variance’:var,
‘standard deviation’:std,
‘maximum’:max,
‘minimum’:min,
‘sum’:sum
}
return calculations
User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.41`

### Challenge Information:

Data Analysis with Python Projects - Mean-Variance-Standard Deviation Calculator

What error are you getting?

You might need to install numpy by typing `pip install numpy` at the shell command prompt

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.