Hello,
I am trying to calculate a field in ArcGIS PRO. The field should contain a constant in every row. This constant will be equal to the maximum of another column in the table.dbf WFr_100.
I can get to the number with this code, but I would like to do it through the field calculator inside Arcgis PRO. Is there a way to do that?
# Import system modules
import arcpy
import numpy
# Set environment settings
arcpy.env.workspace = r"C:\Users\MD \Documents\ArcGIS\Projects\IP\Default.gdb"
input = "WFr_100" arr = arcpy.da.TableToNumPyArray(input, ('CMass'))
x=(arr["CMass"].max())
print(x)