val data = Array(-999.9,-0.5, -0.3, 0.0, 0.2, 999.9)
val dataFrame = sqlContext.createDataFrame(data.map(Tuple1.apply)).toDF("features")
I want to introduce the null entry in the above array. I tried below but it didn't work.
val data = Array(-999.9,-0.5, -0.3, 0.0, 0.2, 999.9, null)