Using filtered data from one field to populate another

107
1
Jump to solution
11-09-2021 12:16 PM
VanceJohnson2
New Contributor

I have a dataset with a "Streetname" field that I would like to label with the name portion (shown as uppercase) but not the designation portion (lowercase). I'm sure that this can be accomplished with a label expression however I opted to create an addition "Label" field with the intention of populating it with a filtered version of the "Streetname" field. I thought I had a handle on how to accomplish this but obviously I am missing something important. Can anyone shed some light on this for me please? ArcGIS Pro 2.8.3

VanceJohnson2_0-1636488890635.png

 

0 Kudos
1 Solution

Accepted Solutions
JayantaPoddar
MVP Esteemed Contributor

Try

''.join(filter(str.isupper, !STREETNAME!))


Think Location

View solution in original post

0 Kudos
1 Reply
JayantaPoddar
MVP Esteemed Contributor

Try

''.join(filter(str.isupper, !STREETNAME!))


Think Location
0 Kudos