I'm trying to get the day of the week from a given date in pyspark could anyone help me ?
dt = dt.withColumn("week_day_number", date_format(col("TRANSACTION_DATE"), "u"))
I'm trying to get the day of the week from a given date in pyspark could anyone help me ?
dt = dt.withColumn("week_day_number", date_format(col("TRANSACTION_DATE"), "u"))