I have to write a code in spark scala in which I have a dataframe with below values.
+-------+-------------------+------+-------------------+-------------------+ |