Suppose you have PySpark dataframe with an integer type column days and an datetype column start who looks like this:
start days
--------------------------------------
2021-04-08 02:49:09 8
2021-04-08 02:49:09 9
2020-05-05 08:43:02 7
What I want to become is a new column end who would look like this:
start days end
---------------------------------------------------------
2021-04-08 02:49:09 8 2021-04-16 02:49:09
2021-04-08 02:49:09 9 2021-04-17 02:49:09
2020-05-05 08:43:02 7 2020-05-12 08:43:02