title: pySpark withColumn with two conditions
body: <p>I want to filter for two conditions: <code>clean_reference.Output == " "</code> <strong><em>and</em></strong>  <code>clean_reference.Primary == "DEFAULT"</code>. If both conditions apply, then <code>clean_reference.Output</code> else <code>"NI"</code></p>
  
  <p>The code below is not accepting my <code>clean_reference.Output</code>as my when() value. </p>
  
  <pre><code>final_reference = clean_reference.withColumn("Output",f.when(clean_reference.Output == " ")| (clean_reference.Primary == "DEFAULT"), clean_reference.Output).otherwise("NI")
  </code></pre>
  
  <pre><code>TypeError: when() missing 1 required positional argument: 'value'
  </code></pre>