Spark dataframe 1 -:
+------+-------+---------+----+---+-------+ |city |product|date |sale|exp|wastage| +------+-------+---------+----+---+-------+ |cit
Using Spark different join types seems to be the key to computing Deletions, Additions, and Updates on rows.
This question illustrates the different types of joins depending on what you are trying to achieve: What are the various join types in Spark?