Is your goal to get a list of the values in your id
column? you can cast your Series
to a list if that is the case. ids = list(row['id'])
Then you will get something like [1, 2, 3, 4]
with your values from your id column from the records returned by the the filtering you did with the Delete
column previously.