I have the following table:
date | months to add |
---|---|
02-2022 | 2 |
05-2012 | 1 |
where the "date" column contains datetime objects, while "months to add" contains integers.
I want to obtain the following series of datetime objects:
new date |
---|
04-2022 |
06-2012 |
EDIT:
It turns out this question had already been partially answered here.
I simply replaced the call to progress_apply
(which now throws "AttributeError: 'DataFrame' object has no attribute 'progress_apply') with a simple apply
.