In ArcGIS Pro, to replace a text value in a field using Field Calculator you can use:
!FieldName!.replace("Old Value", "New Value")
However, this does not work on an integer field. For example:
!IntegerFieldName!.replace(1250, 810)
or
!IntegerFieldName!.replace("1250", "810")
Will both produce syntax errors.
So in a Long, Short, or any numeric field, what is the correct way to replace a specific number with another number?
This function will eventually be implemented in a standalone Python script like:
import arcpy
arcpy.management.CalculateField(r"C:\Shapefile.shp", "FieldName", "!FieldName!.replace(1250, 810)", "PYTHON3", None)