Invert of type two where there are two columns given

def invert_delete_row2(self, key, value):
        """
            Invert of type two where there are two columns given
        """
        self.rows = filter(lambda x: x.get(key) == x.get(value), self.rows)