for row, line in enumerate(input_file, 1):
data = filter(lambda x: len(x) > 0, line.strip().split(delimiter))
if len(data) > 3:
data[2] = delimiter.join(data[2:])
if len(data) == 2:
After Change
times = []
labels = []
splitter = re.compile(delimiter)
with open(filename, "r") as input_file:
for row, line in enumerate(input_file, 1):
data = splitter.split(line.strip(), 2)