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)
| 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 | |
| 603 | USMemorialDay = Holiday( |