

def __init__(self, name, year=None, month=None, day=None, offset=None, observance=None, start_date=None, end_date=None, days_of_week=None):
    "\n        Parameters\n        ----------\n        name : str\n            Name of the holiday , defaults to class name\n        offset : array of pandas.tseries.offsets or\n                class from pandas.tseries.offsets\n            computes offset from  date\n        observance: function\n            computes when holiday is given a pandas Timestamp\n        days_of_week:\n            provide a tuple of days e.g  (0,1,2,3,) for Monday Through Thursday\n            Monday=0,..,Sunday=6\n\n        Examples\n        --------\n        >>> from pandas.tseries.holiday import Holiday, nearest_workday\n        >>> from pandas import DateOffset\n        >>> from dateutil.relativedelta import MO\n        >>> USMemorialDay = Holiday('MemorialDay', month=5, day=24,\n                                    offset=DateOffset(weekday=MO(1)))\n        >>> USLaborDay = Holiday('Labor Day', month=9, day=1,\n                            offset=DateOffset(weekday=MO(1)))\n        >>> July3rd = Holiday('July 3rd', month=7, day=3,)\n        >>> NewYears = Holiday('New Years Day', month=1,  day=1,\n                               observance=nearest_workday),\n        >>> July3rd = Holiday('July 3rd', month=7, day=3,\n                              days_of_week=(0, 1, 2, 3))\n        "
    if ((offset is not None) and (observance is not None)):
        raise NotImplementedError('Cannot use both offset and observance.')
    self.name = name
    self.year = year
    self.month = month
    self.day = day
    self.offset = offset
    self.start_date = (Timestamp(start_date) if (start_date is not None) else start_date)
    month.end_date = (Timestamp(end_date) if (end_date is not None) else end_date)
    self.observance = observance
    assert ((days_of_week is None) or (type(days_of_week) == tuple))
    self.days_of_week = days_of_week

dataset/ETHPy150Open pydata/pandas/pandas/tseries/holiday.py Holiday.__init__/VarMisuse@122/619 `self`->`month`