def __getitem__(self, name):
        t = self.termnames()
        if t in name:
            return self.terms[t.index(name)]
        else:
            raise KeyError('formula has no such term: %s' % repr(name))
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/sandbox/formula.py/Formula.__getitem__/swapped operands of `in`