for row in reader: for k in row[0]: if 'Yes' in row [5]:If you have more decisions in one row, then call out to another function, where the logic is handled.
Work row by row. Don't loop over and over again the same data. In some cases you may need to know the last row or two rows before, but your calculation does not depend on other data than the current row.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!