<How to calcurate Date after months?> Date after months
|Date |months |Date after months|
|12/31/2021 |128 |
|1/11/2022 |5 |
|10/2/2020 |67 |
<How to calcurate Date after months?> Date after months
|Date |months |Date after months|
|12/31/2021 |128 |
|1/11/2022 |5 |
|10/2/2020 |67 |
Copyright © 2021 Jogjafile Inc.
Edit: it looks like there is a bug in
DateOffset(12/31/2021+ 128 months is giving08/28/2032incorrectly) when applied on a Series, see the alternative for a workaround.Assuming pandas, you can use a
DateOffset:Output:
alternative