title: Modify values across all column pyspark
body: <p>I have a pyspark data frame and I'd like to have a conditional replacement of a string across multiple columns, not just one. 
  To be more concrete: I'd like to replace the string 'HIGH' with 1, and everything else in the column with 0. [Or at least replace every 'HIGH' with 1.] In pandas I would do: </p>
  
  <pre><code>df[df == 'HIGH'] = 1
  </code></pre>
  
  <p>Is there a way to do something similar? Or can I do a loop?</p>
  
  <p>I'm new to pyspark so I don't know how to generate example code. </p>