PySpark lit() | Creating New column by Adding Constant Value
The Pyspark lit() function is used to add the new column to the data frame already created; we are creating a new column by assigning a constant or literal value. The lit function returns the return type as a c