Hello, I must select the families "family" that meet the condition of having children. base example (see image 1) Array

For this I must 1. make a cycle for each family 2. create a new column that selects those families that have children "Est_post_98" (see image 2) Array

3. Eliminate Families that do not have children (see image 3) Array Could someone help me, I have tried foreach but I could not