HOW TO
In ArcGIS Pro, when labeling a feature layer using a field containing repeating values with unique end characters, it is sometimes necessary to omit the repeating values and display only the unique end characters to avoid confusion and improve the readability of the labels.
For example, the image below displays labels for the Locality feature layer containing repeating values with two unique end characters. The following workflow describes how to label the feature layer using the last two unique characters of the field value.
def FindLabel (<field_name>): s = <field_name> return s[<number_of_characters_to_be_removed>:]
The image below shows the labels display the two unique end characters of the field values in ArcGIS Pro.
Get help from ArcGIS experts
Download the Esri Support App