foreach() & foreachPartition() to apply customer logic on dataframe records - Edindx