Converting Spark Dataframe(with WrappedArray) to RDD[labelPoint] in scala
问题 I am new to Scala and I want to convert dataframe to rdd. let the label, features convert to RDD[labelPoint] for the input of MLlib. But I can't find out the way to deal with WrappedArray . scala> test.printSchema root |-- user_id: long (nullable = true) |-- brand_store_sn: string (nullable = true) |-- label: integer (nullable = true) |-- money_score: double (nullable = true) |-- normal_score: double (nullable = true) |-- action_score: double (nullable = true) |-- features: array (nullable =