I have a csv file transposed and when opened in notepad, it looks below
phone_number,1234,,,
door_number,abcd,,,
name,abcd,efgh,ijkl,mnop
below is my code
with open("test.csv") as f:
for line in f:
(line.strip(','))
print(line)
however, it does not strip last commas from the csv. I have to use the data in some other application. which requires this format. Also, I want only the first delimiter to be "," and rest to be ";" is it possible?