Python pd.timestamp hinzufügen Tage hinzufügen
def add_days_to_date(date, days):
'''Add days to a date and return the date.
Args:
date (string): Date string in YYYY-MM-DD format.
days (int): Number of days to add to date
Returns:
date (date): Date in YYYY-MM-DD with X days added.
'''
add_date = pd.to_datetime(date) + timedelta(days=days)
add_date = added_date.strftime("%Y-%m-%d")
return added_date
date_addition = add_days_to_date('2021-01-01', 13)
print(date_addition)
$ '2021-01-14'
Condemned Crayfish