Python use growing or shrinking

Peter Hansen peter at engcorp.com
Fri Jan 24 09:10:23 EST 2003


Terry Hancock wrote:
> 
> Erik Max Francis wrote:
> > 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.
> 
> Yeah, maybe I should've mentioned that -- one might try to think of these
> numbers as being percentages of "all software development pages", but of
> course, they're not. It's just a percentage of the pages listed.  It might
> make more sense to scale relative to one representative member. But which
> one?

Why, Python, of course!  Set it to "1", let the others fall where they may.




More information about the Python-list mailing list