nxcals.api.extraction.data.builders.DataFrame.foreach

DataFrame.foreach(f: Callable[[Row], None]) None

Applies the f function to all Row of this DataFrame.

This is a shorthand for df.rdd.foreach().

New in version 1.3.0.

Examples

>>> def f(person):
...     print(person.name)
>>> df.foreach(f)