Well, I am able to create the list, dataframes with the name 'org'
scala> val org = List(1)
org: List[Int] = List(1)
scala> var org = List(1)
org: List[Int] = List(1)
scala>
scala>
scala> val org = Seq((1,2,3), (2,3,4)).toDF()
org: org.apache.spark.sql.DataFrame = [_1: int, _2: int ... 1 more field]
scala> org
res0: org.apache.spark.sql.DataFrame = [_1: int, _2: int ... 1 more field]
scala> org.show
+---+---+---+
| _1| _2| _3|
+---+---+---+
| 1| 2| 3|
| 2| 3| 4|
+---+---+---+
I am using spark version 2.2.0 & scala 2.11.8. I think this issue might be rectified in latest versions. But I am aware that you cannot create values or variables using some reserved keywords . For example
scala> val new = Seq((1,2)(2,3)).toDF()
<console>:1: error: illegal start of simple pattern
val new = Seq((1,2)(2,3)).toDF()
'org' might be a keyword in previous version. Hope that helps ...!!