title: Spark DataFrame - Remove Rows with logic
body: <p>I need a help with the next case:</p>
  
  <p>I have the next DataFrame
  <a href="https://i.stack.imgur.com/4Kb6h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4Kb6h.png" alt="enter image description here"></a></p>
  
  <p>I need remove the rows repeat by <code>CNTA_TIPODOCUMENTOS</code> and CNTA_NRODOCUMENTO and order by the last <code>CNTA_FECHA_FORMULARIO</code>, for instance in the <code>CNTA_NRODOCUMENTO</code>  <code>35468731</code>. I should get this row.</p>
  
  <pre><code>|                  1|         35468731| 2012-08-25 00:00:...|              MARIA| 
  </code></pre>
  
  <p>Do you have any ideas about that?
  Thanks</p>