I have been successful at creating a very basic script when ran to populate labels inside of my layout view in ArcMap. I am no python master and have pieced this together from research. I also have to do this about 40 or so labels so if anyone as a way to write this easier, I am all ears/eyes!
************
import arcpy
from arcpy import env
import string
# Set the workspace
mxd = arcpy.mapping.MapDocument("CURRENT")
# Set the variable for each element
epz_n = arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "epz_n")[0]
cur2_n = arcpy.SearchCursor("tbl_10_to_EPZ", "[Compass] = 'N'")
epz_wnw = arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "epz_wnw")[0]
cur2_wnw = arcpy.SearchCursor("tbl_10_to_EPZ", "[Compass] = 'WNW'")
for row in cur2_n:
epz_n.text = row.getValue("POP_RATIO")
for row in cur2_wnw:
epz_wnw.text = row.getValue("POP_RATIO")
mxd.save()
del mxd
*****************
My question is how do I get that value to resemble a integer separated by commas?
If my value is 15000 I want it to look like 15,000.
Thanks for any suggestions.