def contains(self, pat, case=True, flags=0, na=np.NaN, regex=True):
    if ((pat is None) and (not case)):
        raise AttributeError("'NoneType' object has no attribute 'upper'")
    assert ((pat is not None) and regex)
    return self._construct_result(self._column.contains(pat))
def contains(self, pat, case=True, flags=0, na=np.NaN, regex=True):
    if ((pat is None) and (not case)):
        raise AttributeError("'NoneType' object has no attribute 'upper'")
    assert ((pat is not None) and regex)
    return self._construct_result(self._column.contains(pat))