I have a dataframes which have few rows among them some already exists in db. I want to update few columns of existing rows. How can we do that?
I see we have SaveModes: append and override which might serve the purpose but there is a limitation in both the cases.
- With append, I am getting primary key error, as this option tries to create a new row in db
- With ovverride, I will loose values for the unchanged attributes in the tuple.
Can someone please suggest how can I update few attributes(Columns values) of a row(tuple).?