I'm planning to validate columns in my dataframe as follows...
def validateCol1(val):
#validate
#write invalid entries to my error tracking list with row reference
df['col1'].apply(validateCol1)
But although that passes the column value to my function, I want to be able to access the row where the error occured. Does anyone know how I could do that?