pyspark.sql.functions.lit code example
Example: pyspark lit column
from pyspark.sql.functions import lit
df.withColumn("columnName", lit(<value>))
from pyspark.sql.functions import lit
df.withColumn("columnName", lit(<value>))