+2 votes
in Class 12 by kratos

Fill in the blank with appropriate numpy method to calculate and print the variance of an array.

import numpy as np

data=np.array([1,2,3,4,5,6])

print(np.___(data,ddof=0)

1 Answer

+6 votes
by kratos
 
Best answer

print(np.var(data,ddof=0))

...