[Solved] Spark (Scala) execute dataframe within for loop
Your code is almost correct. Except two things : i is already used in your for loop so don’t use it in val i = If you want to use the value of i in a string, use String Interpolation So your code should look like : for (i <- List (‘a’,’b’)) { val df … Read more