I have a dataset which contains Multiple columns and rows.
Currently, it's in String type And, I wanted to convert to a date-time format for further task.
I tried this below code which returns null
df = df.withColumn('Date_Time',df['Date_Time'].cast(TimestampType()))
df.show()
I tried some of the solutions from here, but none of them is working all, in the end, returns me null.