Hey guys I wanted to code a little program, and I have this code
inputfile = csv.reader(open('data.csv','r'))
for row in inputfile:
but now I have the problem, that I have commas and : in my CSV and I want to replace the ':' with a comma, because I want to read it in with the row[3] function for example. Or is it possible without replacement?
thank you guys!
inputfile = csv.reader(open('data.csv','r'))
for row in inputfile:
    xyc = row[0]
    afs = row[1]
    yxcva = row[2]
    asdfe = row[3]
I tried that already:
data = ""
with `open("input.csv")` as file:
     data = file.read().replace(":", ",")
with `open("data.csv")` as file:
     file.write(data)
 
     
    