print(weighted_mean_function)

from numpy import average

weighted_mean_numpy = average(houses_per_year['Mean Price'],weights = houses_per_year['Houses Sold'])

print(weighted_mean_numpy)

equal =  round(weighted_mean_function, 10) == round(weighted_mean_numpy, 10)

    
