return fit_result[-1]

def test():
    c = collections.Counter()
c[1] = 193260
c[2] = 51794
c[3] = 19112
c[4] = 9250
c[5] = 6486
print("fit1 'scale' is %f " % fit1(c))
print("fit2 'scale' is %f " % fit2(c))
test()
Fit a distribution to a Counter in scipy