https://github.com/pandas-dev/pandas/blob/master/pandas/tseries/holiday.py
>>> USLaborDay = Holiday('Labor Day', month=9, day=1,
offset=pd.DateOffset(weekday=MO(1)))
>>> July3rd = Holiday('July 3rd', month=7, day=3,)
>>> NewYears = Holiday('New Years Day', month=1, day=1,
observance=nearest_workday),
>>> July3rd = Holiday('July 3rd', month=7, day=3,
days_of_week=(0, 1, 2, 3))
从他们的文档中,我对...的解释有些困惑
如果我理解正确的话
NewYears = Holiday('New Years Day', month=1, day=1, observance=next_monday)
表示,如果1月1日恰好在星期六或星期日,那么日历将返回星期一作为假期。
我正确吗?
偏移量和days_of_week
呢?