It might depend on anything. Primarily: python version and environment.
For instance ipython used to order dict keys for pretty-printing, until dicts became well-ordered as a language feature in 3.7. They had to stop doing that.
@Stramzik I don't understand "append [...] to a dataframe cell" vs "make sure there are no duplicates". One cell or many cells or all the cells in a column? Duplicates how?
@AndrasDeak lets say I take a cell from a dataframe which is empty to begin with. As i'm iterating over another df and if a condition is true i want to add the email to that cell. But there is a possibility that the cell already contains the email after multiple iterations, in that case I dont want to add that email to that cell.
Of course this doesn't lend itself well to vectorization, but this is probably true of your poblem in general. Though perhaps you can first grab the cells you want to change, and then change them at the same time.