title: Get index of item in array that is a column in a Spark dataframe
body: <p>I am able to filter a Spark dataframe (in PySpark) based on if a particular value exists within an array field by doing the following:</p>
  
  <pre><code>from pyspark.sql.functions import array_contains
  spark_df.filter(array_contains(spark_df.array_column_name, "value that I want")).show() 
  </code></pre>
  
  <p>Is there a way to get the index of where in the array the item was found?  It seems like that should exist, but I am not finding it.  Thank you.</p>