This is One of the Solutions

Category: Pyspark