Hello I am trying to insert a code that force a column Sum_Acres_ to add a comma to display like this 300,000 from 300000.456
Here is my sample I wrote from a ModelBuilder and export it to python.
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# Summary.py
# Created on: 2014-07-16 08:10:58.00000
# (generated by ArcGIS/ModelBuilder)
# Description:
# ---------------------------------------------------------------------------
# Import arcpy module
import arcpy
# Load required toolboxes
arcpy.ImportToolbox("Model Functions")
# Local variables:
Final_Intersect = "E:\\FY2013_projects\\PMC_project\\USGS EarthExplorer\\2004\\Final_Intersect"
Statistics_Field_s_ = "Acres_1 SUM"
ast_l1b_00301132004175715_20101206173613_5997_ndvi_shp = "E:\\FY2013_projects\\PMC_project\\USGS EarthExplorer\\2004\\Final_Intersect\\ast_l1b_00301132004175715_20101206173613_5997_ndvi.shp"
v_name__dbf = "E:\\FY2013_projects\\PMC_project\\USGS EarthExplorer\\2004\\Final_Summarize\\%name%.dbf"
Name = "ast_l1b_00301132004175715_20101206173613_5997_ndvi"
# Process: Iterate Feature Classes
arcpy.IterateFeatureClasses_mb(Final_Intersect, "A*", "", "RECURSIVE")
# Process: Summary Statistics
arcpy.Statistics_analysis(ast_l1b_00301132004175715_20101206173613_5997_ndvi_shp, v_name__dbf, Statistics_Field_s_, "Crops")
# Process: Parse Path
arcpy.ParsePath_mb(Name, "FILE")
How or where should I insert this code ({:,}'.format(!SUM_Acres_!)) above ?
Actually I have 10 of them in separate modelbuilder and it is the same thing but just a different dictionary and it would save me a lot of my time to do this by copy python and then just simply change the path names to different For example, C:\2004\final , C:\2005\final, C:\2006\final so on...