I was trying one Dataquest exercise and I figured out that the variance I am getting is different for the two packages..
e.g for [1,2,3,4]
from statistics import variance
import numpy as np
print(np.var([1,2,3,4]))
print(variance([1,2,3,4]))
//1.25
//1.6666666666666667
The expected answer to the exercise is calculated with np.var()