Pyspark Functions, filter(col, f) [source] # Returns an array of elements for which a predicate holds in a given array.