title: Split values in dataframe into separate dataframe column -spark scala
body: <p>My requirement is to convert the below dataframe</p>
  
  <p><code>df.show()</code></p>
  
  <pre><code>Id | vals
  1  | name=John || age=25 || col1 =val1  || col2= val2
  2  | name=Joe  || age=23 || col1 =val11 || col2= val22
  </code></pre>
  
  <p>Into</p>
  
  <pre><code>Id | name | age |  col1 | col2
  1  | John |  25 |  val1 | val2
  2  | Joe  |  23 | val11 |val22
  </code></pre>
  
  <p>Please assist me with this.</p>