i had an unique problem.
I have code:
with open("test.csv", "r") as csvFile:
reader = csv.reader(csvFile, skipinitialspace=True)
for row in reader:
for obj in row:
anotherCommand, e=5, f=6, g=7, h=9, test="aaa, bbb, ggggg"
test="aaa, bbb, ggggg"
You could possibly make use of
import shlex with open('test.csv') as fin: for line in fin: row = [col.rstrip(',') for col in shlex.split(line)] print(*row, sep='\n')