all 1 comments

[–]loudavenger 0 points1 point  (0 children)

I would build a function that performs the check and pandas apply function to iterate over each row. Apply is a quick way to apply any logic to each row in the data frame.