In python, concatenating two lists can be done simply using the + operator. I'm assuming the RDD you're using map over consists of a tuple:
map(lambda x: x[0] + x[1]) -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/how-can-i-write-map-x-x-1-x-2-statement-in-python-tp26172p26173.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org