I have the below dataframe.
Date time additional_time(in mins)
2021-02-01 12:02:05 60
2021-02-10 09:00:00 30
I have to combine the date and time column using concat_ws with spaces as concatenation and then add the additional time as minutes to the timestamp.
Expected output:
Timestamp
2021-02-01 13:02:05
2021-02-10 09:30:00
Interval in minutes can be used if I have to add a constant time to all rows. But in my condition the time to be added varies for every row.
Kindly let me know how to achieve this in Pyspark.