I'm using Azure databricks Runtime 7.3 LTS I have pyspark dataframe df. In df I want to add a new column Date_time which will have date value. So I wrote following comments
from pyspark.sql import functions as F
timestamp='2020-01-03'
df.withColumn('Date_time', timestamp)
But I'm getting error message
AssertionError: col should be Column
How to rectify this error?