title: unify the information of a user in a single row as a dataFrame using scala
body: <pre><code>dfFilter.show()
  
  ------------+-----------+-----------+------------+--------+
  CONTR       |COD        | DATE      |TYPCOD      | Amount |
  ------------+-----------+-----------+------------+--------+
  0004        |4433       |2006-11-04 |RMA         | 150.0  |
  0004        |4433       |2012-05-14 |FCB         | 300.0  |
  0004        |1122       |2011-10-17 |RMA         | 100.0  |
  0004        |1122       |2015-12-05 |FCB         | 500.0  |
  ------------+-----------+-----------+------------+--------+
  // 
  
  val addColumn = dfFilter.withColumn("RMA_AMOUNT", when(col("TYPCOD")==="RMA", col("Amount")))
                          .withColumn("DATE_RMA", when(col("TYPCOD")==="RMA", col("DATE")))
                          .withColumn("FCB_AMOUNT", when(col("TYPCOD")==="FCB", col("Amount")))
                          .withColumn("DATE_FCB", when(col("TYPCOD")==="FCB", col("DATE")))
  addColumn.show()
  
  --------+-----------+-----------+------------+--------+------------+-----------+-----------+-----------+
  CONTR   |COD        | DATE      |TYPCOD      | Amount | RMA_AMOUNT |DATE_RMA   |FCB_AMOUNT |DATE_FCB   |
  --------+-----------+-----------+------------+--------+------------+-----------+-----------+-----------+
  0004    |4433       |2006-11-04 |RMA         | 150.0  |150.0       |2006-11-04 |null       |null       |
  0004    |4433       |2012-05-14 |FCB         | 300.0  |null        |null       |300.0      |2012-05-14 |
  0004    |1122       |2011-10-17 |RMA         | 100.0  |100.0       |2011-10-17 |null       |null       |
  0004    |1122       |2015-12-05 |FCB         | 500.0  |null        |null       |500.0      |2015-12-05 |
  --------+-----------+------------+-----------+--------+------------+-----------+-----------+-----------+
  </code></pre>
  
  <p>I have the same <strong>CONTR</strong> and <strong>COD</strong> but that client has different dates and amounts and 
   I want to group them and keep two lines in the dataFrame, I have added columns in relation 
   to the <strong>TYPCOD</strong> and <strong>DATE</strong> fields so that later I can only stay with two lines in the dataFrame 
   and thus not lose information.</p>
  
  <p>it's possible?
  Expected: ? </p>
  
  <pre><code>------------+-------------+------------+-----------+-----------+-----------+
  CONTR       |COD          | RMA_AMOUNT |DATE_RMA   |FCB_AMOUNT |DATE_FCB   |
  ------------+-------------+------------+-----------+-----------+-----------+
  0004        |4433         |150.0       |2006-11-04 |300.0      |2012-05-14 |
  0004        |1122         |100.0       |2011-10-17 |500.0      |2015-12-05 |
  ------------+-------------+------------+-----------+-----------+-----------+
  
  </code></pre>