AnsweredAssumed Answered

How to Calculate or use Update Cursor to concatenate fields only for values that are None

Question asked by geoffreywestgis on Nov 28, 2016
Latest reply on Nov 28, 2016 by mitchh300

I have two values, one date and one time, I would like to only calculate my new field if the value for the field is NULL.  How do I do so using ArcPy?  My current code reads as.

 

calcExpression = "!ORIGDTDATE!+\" \"+ !ORIGDTTIME!"
arcpy.CalculateField_management(self.line_ticket_feature_class,"emergency_overdue",calcExpression,"PYTHON_9.3")
arcpy.CalculateField_management(self.poly_ticket_feature_class,"emergency_overdue",calcExpression,"PYTHON_9.3")

Outcomes