Inverts delete_row and returns the rows where key = value

def invert_delete_row(self, key, value):
        """
            Inverts delete_row and returns the rows where key = value
        """
        self.rows = filter(lambda x: x.get(key) == value, self.rows)