title: How to remove array element in PySpark dataframe?
body: <p>I want to remove barcode from this array.</p>
  
  <p>My dataframe looks like the sample given below,</p>
  
  <pre><code>|-- variants: array (nullable = true)
  
   |    |-- element: struct (containsNull = true)
  
   |    |    |-- admin_graphql_api_id: string (nullable = true)
  
   |    |    |-- barcode: string (nullable = true)
  
   |    |    |-- compare_at_price: string (nullable = true)
  </code></pre>
  
  <p>Can you help me to remove the element from the dataframe using PySpark.</p>