I am trying to field calculate a double field (PID) to a new string field (PIN). Using:
qry = '"139-{}".format(!PID!)'
arcpy.CalculateField_management(out, "PIN", qry, "PYTHON")
Given a PID = 260360160 The output generated in string PIN field is:
PIN = 139-260360160.0
How can I get rid of the .0? I assume this is carry over from the original field being a double.
I am running ArcGIS 10.2 and Python 2.7.3