If I have 3 columns with ages and 3 columns correlated with years, how can I verify that the difference between each age is equal to the distance between each year?
For example, in this test df all the ids are ok except 4 and 7, how can I make a code to check this in a simple way?