I want to replace the column values if the values in column one are NULL and the values in the other two columns are the same. After that the column four value in the data frame has to be placed at column one.
dishachExplainer
Based on several conditions, how can we replace one column value with another one in Pyspark?
Share
For NULL condition we use, isnull() and .otherwise( df.col1 )
For example: