I have a huge dataset and for illustration, I have simplified the dataset given below:
date    product price   amount
201901  A   10  20
201902  A   10  20
201903  A   20  30
201904  C   40  50
In this dataset date column shows year-weekNumber and I am trying to convert string type to date type in pyspark dataframe. Is there any efficient way to set date column as "date" type?
 
    