I'd like to use an if else statement to make a new column in my dataframe based on data in another column. Namely, I want to make a differentiation IN a group. So for example in a family with an ID xyz with 2 siblings with their own ID but the same family ID the oldest person (based on the year) the predicate "first born" and the other person "not first born. Should look then as follows:
Thx for any coding help