I have a data frame that I iterate through and modify as follows:
filtered = pd.read_csv(fileloc) for index, row in filtered.iterrows(): r