This is my data:
scala> data.printSchema root |-- 1.0: string (nullable = true) |-- 2.0: string (nullable = true) |-- 3.0: string (nullable = true)
You can use backticks to escape the dot, which is reserved for accessing columns for struct type:
data.select("`2.0`").show +---+ |2.0| +---+ | , | +---+