title: How do I flattern a pySpark dataframe ?
body: <p>I have a spark dataframe like this:</p>
  
  <pre><code>id |            Operation                 |        Value 
  ----------------------------------------------------------- 
  1  | [Date_Min, Date_Max, Device]         | [148590, 148590, iphone]     
  2  | [Date_Min, Date_Max, Review]         | [148590, 148590, Good]     
  3  | [Date_Min, Date_Max, Review, Device] | [148590, 148590, Bad,samsung]     
  </code></pre>
  
  <p>The resul that i expect:</p>
  
  <pre><code>id | Operation |  Value |
  -------------------------- 
  1  | Date_Min  | 148590 |
  1  | Date_Max  | 148590 |
  1  | Device    | iphone |
  2  | Date_Min  | 148590 |
  2  | Date_Max  | 148590 |
  2  | Review    | Good   |
  3  | Date_Min  | 148590 |
  3  | Date_Max  | 148590 |
  3  | Review    | Bad    |
  3  | Review    | samsung|
  </code></pre>
  
  <p>I'm using Spark 2.1.0 with pyspark. I tried this <a href="https://stackoverflow.com/questions/36758854/how-do-i-flattern-a-pyspark-dataframe-by-one-array-column">solution </a> but it worked only for one column.</p>
  
  <p>Thanks</p>