HOW TO
Removing leading zeros from a field in an attribute table can be time-consuming if the data provided is large, as shown in the image below. However, this task can be automated using a Python or Arcade expression. In Python, the Int() function is used to remove the leading zeros from a text data type field; deeming the values as integers, thus preventing the population of numbers beginning with a zero ('0'). This article provides the workflow to automate the removal of leading zeros from a field in an attribute table using a Python or Arcade expression in ArcGIS Pro.
Int(!<Field_Name>!)
Number($feature.<Field_Name>)
The following image shows the leading zeros removed from the data in the attribute table.
Get help from ArcGIS experts
Download the Esri Support App