pyspark.streaming.DStream.filter

DStream.filter(f: Callable[[T], bool]) → pyspark.streaming.dstream.DStream[T][source]

Return a new DStream containing only the elements that satisfy predicate.