Python Pandas: How to iterate dataframe row by row and update while iterating | Hacker News Reader