[Solved] How to insert character in csv cell in python?
You can tell Python’s split() to stop after a given number of matches by passing a maxsplit parameter. So in your case you just need to split after the first space as follows: import csv with open(‘input.csv’, ‘rb’) as f_input, open(‘output.csv’, ‘wb’) as f_output: csv_output = csv.writer(f_output, delimiter=”;”) for row in csv.reader(f_input, delimiter=”;”): # Skip … Read more