title: How to zip two RDDs (Scala)
body: <p>I have two RDDs which have this form:</p>
  
  <p><strong>RDD A:</strong> (Columns: icchID, X_Coord)</p>
  
  <pre><code>[ICCH 1,10.0]
  [ICCH 2,10.0]
  [ICCH 4,100.0]
  [ICCH 4,100.0]
  [ICCH 2,13.0]
  </code></pre>
  
  <p><strong>RDD B:</strong> (Columns: Y_Coord, Class)</p>
  
  <pre><code>[10.0,A]
  [64.0,B]
  [39.0,A]
  [9.0,C]
  [80.0,D]
  </code></pre>
  
  <p>I would like to combine those two RDDs so that I have an RDD which has this form:</p>
  
  <pre><code>[ICCH 1,10.0,10.0,A]
  [ICCH 2,10.0,64.0,B]
  [ICCH 4,100.0,39.0,A]
  [ICCH 4,100.0,9.0,C]
  [ICCH 2,13.0,80.0,D]
  </code></pre>
  
  <p>Note that both RDDs have the same Rows and Columns. Is it possible to do this using Scala?</p>
  
  <p>P.S. I am a noob at Scala. I am using Databricks.</p>