class_docstr: Abstract interface to create holidays following certain rules.
class_docstr_tok: ["Abstract","interface","to","create","holidays","following","certain","rules","."]
docstr: Initializes holiday object with a given set a rules.  Normally
  classes just have the rules defined within them.
  
  Parameters
  ----------
  name : str
      Name of the holiday calendar, defaults to class name
  rules : array of Holiday objects
      A set of rules used to create the holidays.
docstr_tok: ["Initializes","holiday","object","with","a","given","set","a","rules",".","Normally","classes","just","have","the","rules","defined","within","them",".","Parameters","--","--","--","--","--","name",":","str","Name","of","the","holiday","calendar",",","defaults","to","class","name","rules",":","array","of","Holiday","objects","A","set","of","rules","used","to","create","the","holidays","."]
code: def __init__(self, name=None, rules=None):
      """
      Initializes holiday object with a given set a rules.  Normally
      classes just have the rules defined within them.
  
      Parameters
      ----------
      name : str
          Name of the holiday calendar, defaults to class name
      rules : array of Holiday objects
          A set of rules used to create the holidays.
      """
      super(AbstractHolidayCalendar, self).__init__()
      if name is None:
          name = self.__class__.__name__
      self.name = name
  
      if rules is not None:
          self.rules = rules
  
imports: from datetime import datetime, timedelta
  import warnings
  from dateutil.relativedelta import FR, MO, SA, SU, TH, TU, WE
  import numpy
  from pandas.compat import add_metaclass
  from pandas.errors import PerformanceWarning
  from pandas import DateOffset, Series, Timestamp, date_range
  from pandas.tseries.offsets import Day, Easter
label_desc: Use image node_id 1 to create a new AbstractHolidayCalendar object from inherited base classes: object with example: obj = AbstractHolidayCalendar(name, rules)