HOW TO
In ArcGIS Pro, some fields may contain leading zeros. Often, leading zeros are not required when displaying field values as labels for better data integration and map visualization. The leading zeros can be removed from the fields in the attribute table in ArcGIS Pro. This article provides the workflow to remove leading zeros when displaying labels using a Python or Arcade expression while retaining the leading zeros in the attribute table in ArcGIS Pro.
Note: In the Contents pane, ensure the feature layer and feature class check boxes are checked to display the labels.
Number($feature.<field_name>)
[Field_Name].lstrip("0")
The image below displays the data without leading zeros in the labels.
Get help from ArcGIS experts
Download the Esri Support App