pyspark.streaming.DStream.filter — PySpark In-Progress documentation
Return a new DStream containing only the elements that satisfy predicate.