spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuval.Itzchakov" <>
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:
Sent from the Apache Spark User List mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message