3
我有一個RDD與元組的形式是:PySpark - 轉換的RDD成一個鍵值對RDD,與值列表是
[("a1","b1","c1","d1","e1"), ("a2","b2","c2","d2","e2"), ...
我想是要變換成關鍵 - 值對RDD,其中,所述第一場將首先串(鍵)和第二場字符串(值)的列表,即,欲把它轉化爲以下形式:
[("a1",["b1","c1","d1","e1"]), ("a2",["b2","c2","d2","e2"]), ...
正是我需要的,謝謝! – nikos