pyspark.streaming.DStream.map

DStream.map(f: Callable[[T], U], preservesPartitioning: bool = False) → pyspark.streaming.dstream.DStream[U][source]

Return a new DStream by applying a function to each element of DStream.