for index, row in df.iterrows(): new_row = modify_row(row) df[index] = new_row
Is there a way to assign a modified row to the original row index without using column name? The above code doesn't seem working, but would be simplest for me if it works.
https://stackoverflow.com/questions/66926549/may-i-update-dataframe-row-by-row-index April 03, 2021 at 08:01AM
没有评论:
发表评论