Skip to content
Prev 366515 / 398502 Next

using if else function to complete a column in data frame

The inner loop was not "recognizing" (or more accurately you were not causing the code to account for the fact) that you wanted this to be done within values of ID. Each pass of the outer loop was doing the same process inside the inner loop.
David Winsemius
Alameda, CA, USA