Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Field calc help

$
0
0
I'm trying to populate a field with an already defined area but only if the Updat_HYGR variable is = to 'A'

i have a column with letters A-D (Updat_HYGR), a Column with areas in sqmi (Sq_Miles) and a new column A_SqMi that i only want populated with the area if the Updat_HYGRP = 'A'

i just started using python but my statement looks like this

def Reclass(A_SqMi):
if (Updat_HYGR == 'A'):
return Sq_Miles



Reclass(!A_SqMi!)


Any help would be appreciated

Viewing all articles
Browse latest Browse all 2485

Trending Articles