Created
September 2, 2009 17:29
-
-
Save fitoria/179840 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for i in range(len(data)): | |
| porcentaje_producen = "%.2f" % (data[i][0]/totals[0])*100 #fail | |
| porcentaje_compran = (data[i][1]/totals[1])*100 | |
| porcentaje_suficiente = (data[i][2]/totals[2])*100 | |
| data[i].insert(1, porcentaje_producen) | |
| data[i].insert(3, "%.2f" % porcentaje_compran) #fail | |
| data[i].insert(5, porcentaje_suficiente) | |
| data[i].insert(0, [dato[1] for dato in PRODUCTO_CHOICES][i]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment