I am trying to insert a refined log created on each row through foreach & want to store into a Kafka topic as follows -
foreach
def refine(df): l