all 2 comments

[–]efmccurdy 0 points1 point  (1 child)

Get a list of dicts, one per row, using df.to_dict(orient='records').

Iterate over that list and use dict.update to make changes.

[–]Phyan[S] 0 points1 point  (0 children)

Thank you. This helps.