MCPcopy
hub / github.com/pandas-dev/pandas / merge

Method merge

pandas/tseries/holiday.py:584–600  ·  view source on GitHub ↗

Merge holiday calendars together. The caller's class rules take precedence. The merge will be done based on each holiday's name. Parameters ---------- other : holiday calendar inplace : bool (default=False) If True set rule_tabl

(self, other, inplace: bool = False)

Source from the content-addressed store, hash-verified

582 return list(other_holidays.values())
583
584 def merge(self, other, inplace: bool = False):
585 """
586 Merge holiday calendars together. The caller's class
587 rules take precedence. The merge will be done
588 based on each holiday's name.
589
590 Parameters
591 ----------
592 other : holiday calendar
593 inplace : bool (default=False)
594 If True set rule_table to holidays, else return array of Holidays
595 """
596 holidays = self.merge_class(self, other)
597 if inplace:
598 self.rules = holidays
599 else:
600 return holidays
601
602
603USMemorialDay = Holiday(

Calls 1

merge_classMethod · 0.95