title: How to map one column of dataframes to another column in Apache Spark Scala?
body: <p>I have created a dataframe from a CSV file. It has 10 columns two of which are actress and movie title. I want to make actress as a key and title as a value and further want to reduce it by key to get the list of movies for every actress. For that case I have to map actress column to movie title column first. So how to get the tuples of actress, movie tile key value pair in Spark scala. Further, I want to do it using basic operations not SparkSQL.</p>