'How can I specify rules for pyspark dataframe

I have a small query. I have records in my table related to same parents(or we can say brother-sister). Now I want to 1.) Select the records associated to same parents. 2.) Among these selected records take the record having minimum age and flow it further in my process. I have to do all this using pyspark



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source