Pyspark code to create a new column in existing dataframe and assign value to the column from a function
I have a dataframe df which has around 40 columns. Now I want to add a new column named as comment in the dataframe, and value of that column should be coming through a function.