I need some help with a transformation I want to make to a txt file for a homework in scala using command line of spark. Here is the array I created by using a DF: