You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to push an update for the FAQ in the Wiki section. I just cleaned up and added a little bit to the section about Lambda notation. Below is the updated replacement.
I wanted to push an update for the FAQ in the Wiki section. I just cleaned up and added a little bit to the section about Lambda notation. Below is the updated replacement.
The less-fancy versions (HTML and markdown) are:
Mapping RDDs with Single Values
result_array_ts = result_rdd.map(lambda (ts, voltage): ts).collect()
result_array_ts = result_rdd.map(lambda ts_voltage: ts_voltage[0]).collect()
result_array_voltage = result_rdd.map(lambda ts_voltage: ts_voltage[1]).collect()
Mapping RDDs with Multiple Values
rdd.map(lambda (x, y): pow(x * y, 2)).sum()
rdd.map(lambda xy: pow(xy[0] * xy[1], 2)).sum()
The text was updated successfully, but these errors were encountered: