In ArcGIS 10.3 for Desktop, I work with this point layer and I want to remove all the Sg
& Sgs
labels from it:
So I can get this result only:
All the labels are in one field named "field_name" (it is a string type field). I can seperate the data into two fields or export the features with the numbers only.
I prefer to remove it with SQL Expression. I tried this one:
def FindLabel ([field_name]):
if "Sg" IN [field_name] :
pass
return [field_name]
I am getting this error:
Error 0 no line 0.
SyntaxError: invalid syntax (<string>, line 2)