spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuval.Itzchakov" <yuva...@gmail.com>
Subject Re: how can i write map(x => x._1 ++ x._2) statement in python.??
Date Mon, 08 Feb 2016 10:51:57 GMT
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-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org


Mime
View raw message