def weekend_to_monday(dt):
    if dt.weekday() == 6:
        return dt + timedelta(1)
    elif dt.weekday() == 5:
        return dt + timedelta(2)
    return dt
If holiday falls on Sunday or Saturday,
dataset/ETHPy150Open pydata/pandas/pandas/tseries/holiday.py/weekend_to_monday