def rule_from_name(self, name):
        for rule in self.rules:
            if rule.name == name:
                return rule

        return None
dataset/ETHPy150Open pydata/pandas/pandas/tseries/holiday.py/AbstractHolidayCalendar.rule_from_name/original