While changing the format of column week_end_date from string to date, I am getting whole column as null.
from pyspark.sql.functions import unix_timestamp, from_unixtime
df = spark.read.csv('dbfs:/location/abc.txt',
header=True)
df2 = df.select(
'week_end_date',
from_unixtime(unix_timestamp('week_end_date', 'MM-dd-yyyy')).alias('date')
).show()
print(df2)
