title: Remove special character from array pyspark
body: <p>I have a pyspark dataframe, that contain one column  of string.</p>
  
  <p>df example:</p>
  
  <pre><code>number | id
  ---------------
  12     | [12, .AZ, .UI]
  ------------------------
  14     | [CL, .RT, OP.]
  </code></pre>
  
  <p>I want to remove the character <code>'.'</code></p>
  
  <p>I tried using <code>regexp_replace</code>:</p>
  
  <pre><code>df = df.select("id", F.regexp_replace(F.col("id"), ".").alias("id"))
  </code></pre>
  
  <p>But I think regexp_replace is good solution for string not an array.</p>
  
  <p>How can I remove this character from array ?
  Thank you </p>