Data frames error

Hi I am getting the below error when trying to create data frames

:40: error: value toDF is not a member of org.apache.spark.rdd.RDD[U]
possible cause: maybe a semicolon is missing before `value toDF’?
orders(r(0).toInt, r(1), r(2).toInt, r(3))}).toDF

I have created sqlContext and imported sqlContext.implicits._
please advice.

Hello team
i got the similar error. please advise to resolve this issue. i subscribed Big data lab yesterday.

Thanks.