I have a number of admission dates stored in a column and I would like to add in a new column future random dates (date of discharge) between 3 and 20 days after the day of admission date.
My admission dates:
show = pd.DataFrame(columns=[ 'admission dates'])
show['admission dates'] = random_dates(start=pd.to_datetime('2021-01-01'),
end=pd.to_datetime('2021-01-31'), size=5)
shows
admission dates
0 2021-01-02
1 2021-01-16
2 2021-01-10
3 2021-01-27
4 2021-01-30
What I am trying to get
admission dates Discharge dates
0 2021-01-02 2021-01-05 # +3
1 2021-01-16 2021-01-26 # +10
2 2021-01-10 2021-01-15 # +5
3 2021-01-27 ...
4 2021-01-30