title: How to add a max date in Data Frame?
body: <p>I need to add a column, which is the maximum of the date in a  pyspark dataframe</p>
  
  <p>Getting error:  <code>"TypeError: 'Column' object is not callable"</code></p>
  
  <pre><code>Part3DF = Part3DF.withColumn('latest_installation_time1', to_date(unix_timestamp(col('transaction_time'),'MM-dd-yyyy').cast("timestamp")))
  
  Part3DF = Part3DF.withColumn('latest_installation_time', (Part3DF.latest_installation_time1).max())
  </code></pre>