

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

dataset/ETHPy150Open pydata/pandas/pandas/tseries/holiday.py AbstractHolidayCalendar.rule_from_name/VarMisuse@27/31 `name`->`rule`