def _is_leap(year):
    year = int(year)
    return year % 4 == 0 and (year % 100 != 0 and year % 400 == 0)
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/tsa/base/datetools.py/_is_leap/operator `or` -> `and`