Plz Solve This Problem In Python From Pyspark Sql

Plz Solve This Problem In Python From Pyspark Sql