Spark dataframe loop through rows python. foreach(f: Callable [ [pyspark