I'm working on zoning data and I've been evaluating if the percentage for various zoning is more than 90% of the area, so I can define it as that zone in a new field, like so:
def ifBlock(RS, RM): if RS >= 90: return "RS" elif RM >= 90: return "RM" else: return "Mixed"
There are approximately ~40-50 lines of the above code for the different zones. However, for some of the parcels, the values for all of the zones come out to 0. I want to make a new field to identify these areas as "no data". I thought that I could define all of the zoning columns in a list, and I wanted to write in Python something like "if all of the values in the list = 0, return no data".