I am using Spark version 2.1 in Databricks. I have a data frame named wamp to which I want to add a column named region which should take the constant value NE. However, I get an error saying NameError: name 'lit' is not defined when I run the following command:
wamp = wamp.withColumn('region', lit('NE'))
What am I doing wrong?