I'm writing a python script that reads a csv file and iterates through for any cells with an inequality and adds a new column and splits the inequality to the new cell. I want to ignore the first row of the csv as its the header but usinig next(reader) also removes the first row of data.
reader = csv.DictReader(inFile)
first_row = next(reader)
fieldnames = list(reader.fieldnames)
for key, value in first_row.items():
if any(value.startswith(char) for char in ['<', '=', '>']):
fieldnames.append(key+'_inequality')