title: Pyspark One Hot Encoding
body: <p>I have a sample data which I would like to do the PySpark version of str.get_dummies but am not sure how to do it.</p>
  <p>title_df:</p>
  <pre><code>    Film       Category
      LOTR        Drama, Fantasy
      STAR WARS   Sci-Fi, Action
      etc.
  </code></pre>
  <p>Which will then give me with:</p>
  <pre><code>    Film     Action  Fantasy  Drama  Sci-Fi  Romance  Comedy
      LOTR          0       1        1      0        0       0
      STAR WARS     1       0        0      1        0       0
      etc.
  </code></pre>
  <p>Appreciate the help!</p>