enter image description hereI have a dataframe with two columns (text, useful). I would like to replace any value in "useful" column greater that 20 to 1, else set to zero. Need some help with this. I'm using scala in databricks community
+--------------------+------+
|Located in a base...| 0|
| I am not a vegeta | 12|
+--------------------+------+
| text|useful|
+--------------------+------+
|Located in a base...| 0|
|I am not a vegeta...| 1|
|There is so many ...| 12|
|Disclaimer: this ...| 0|
|House Special Chi...| 0|
|The food at Chez ...| 2|
|Overall not bad. ...| 3|