I would like to iterate through the content of a column in a spark DataFrame and correct the data within a cell if it meets a certain condition
+-------------+
|column_title |
+-------------+
+-----+
|null |
+-----+
+-----+
|0 |
+-----+
+-----+
|1 |
+-----+
Lets say I want to display something else when value of column is null, I tried with
Column.when()
DataSet.withColumn()
But I cant find the right method, i don't think it would be necessary to convert to RDD and iterate through it.