def test_not_feature(es): likes_ice_cream = es['customers']['loves_ice_cream'] not_feat = Not(likes_ice_cream) features = [not_feat] pandas_backend = PandasBackend(es, features) df = pandas_backend.calculate_all_features(instance_ids=[0, 1], time_last=None) v = df[not_feat.get_name()].values assert not v[0] assert v[1]
def NOT(self): """Creates inverse of feature""" from featuretools.primitives import Not from featuretools.primitives import Compare if isinstance(self, Compare): return self.invert() return Not(self)