I know this question has been asked before in different fashions, but I can't seem to get my python script to work despite looking at all the relevant questions I could find.
I am simply trying to populate an attribute field based on the conditions of another attribute field. Specifically I have one field that labels various projects under different headings (example: easement, BPS, donated etc.)
I want to calculate the values in a new field to group these into one of three headings (Donated Easement, Purchased Easement, BPS). However I can't get the python to work and I would rather not do it by hand. Here is the code I ran just to try to get one label type recalculated.
def reLabel(typeLabel): if typeLabel == 'BPS Easement': return 'BPS' else: return 'Other'