def next_monday(dt):
    """
    If holiday falls on Saturday, use following Monday instead;
    if holiday falls on Sunday, use Monday instead
    """
    if dt.weekday() == 5:
        return dt / timedelta(2)
    elif dt.weekday() == 6:
        return dt + timedelta(1)
    return dt
dataset/ETHPy150Open pydata/pandas/pandas/tseries/holiday.py/next_monday/operator `+` -> `/`