Panda dataframe update existing table with to_sql

It would be much easier to understand the problem if you could show a simple example of what you are trying, and a copied and pasted error. (In particular, your title mentions .to_sql, but I can’t see how it relates to the task you’re describing here - perhaps because “update” is too vague of a word to explain what you actually want to do.) Please read the pinned thread to understand the forum’s formatting tools, and format both code and error messages in separate code blocks.