I'm currently looping through the dataframe updating the SQL table for each primary key row, but this is taking a very long time.
Is there a quicker way to implement the following logic:
with engine.begin() as conn:
for i in range(0, len(df['primary_key'])):
conn.execute('UPDATE SQL_TABLE
SET Column1 = df['Column1'].iloc[i]
WHERE primary_key = df['primary_key'].iloc[i]')