def ds_add(ds, days):

    ds = datetime.strptime(ds, '%Y-%m-%d')
    if days:
        ds = ds + timedelta(days)
    return ds.isoformat()[:10]
Add or subtract days from a YYYY-MM-DD
dataset/ETHPy150Open airbnb/airflow/airflow/macros/__init__.py/ds_add