The following code isn't working as expected and I'm not sure why:
UpOrDown = reclass(!UpOrDown!) def reclass (Z,GP): if (GP == "DT" and Z == "CG"): UpOrDown = 1 if (GP == "DT" and Z == "CN"): UpOrDown = 1 if (GP == ...and so on.... )
The expression is passing as valid but the wrning (warning 002858) suggests that there is a
reclass() which is missing the argument
I have added this into the code at
UpOrDown = reclass(!UpOrDown!,!G!) which returns no error but doesn't output the expected variable of 1 in the
UpOrDown column (which is Double).
I also changed the dependent variables to both Z and GP which still didn't change anything.
What is missing?