Python use growing or shrinking

Erik Max Francis max at
Fri Jan 24 01:38:29 CET 2003

Terry Hancock wrote:

> >>> for k,v in kv:
> ...     print "%s\t%5d\t%5.1f%%" % (k, v, (float(v)/sum)*100)

It's tempting to scale them all as a percentage of a total, but it has a
lie-with-statistics flaw:  If you add more languages, it looks like the
ratings of all the others go down, even though that isn't the case.

Not that what we're measuring has much intrinsic value, anyway.

 Erik Max Francis / max at /
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ An undevout astronomer is mad.
\__/ Edward Young Quake III Arena /
 A personal guide to Quake III Arena.

More information about the Python-list mailing list