79373689

Date: 2025-01-21 08:44:41
Score: 1
Natty:
Report link

Just wanted to add the following to sophocles answer:

from pyspark.sql import functions as F

table.select("date_time")
   .withColumn("date",to_timestamp("date_time"))\
   .agg(F.min('date_time'), F.max('date_time')).show()

otherwise that solution does not work out of the box.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: josuapop