you are right about the number just add to the return the fraction to get the number like this "return stats.pearsonr(population_by_region, win_loss_by_region)[0]-0.015490326391230648"