TypeError: ‘DataFrame’ object is not callable
It seems you need DataFrame.var: Normalized by N-1 by default. This can be changed using the ddof argument Sample: If need numpy solutions with numpy.var: Differences are because by default ddof=1 in pandas, but you can change it to 0: