I am trying to update if record exist and insert if no record is found. using below code
for index, row in df.iterrows(): c