I'm trying to import a CSV file with data and then do calculations with the data, the file is made as a list string. I'm trying to replace all the ' ' with '0' in every list that is in the CSV file. Looking for any advice
My current code:
import CSV
with open('Superheroes.csv', 'r') as csvfile:
first_line = csvfile.readline()
super_reader = csv.reader(csvfile, delimiter=',')
for vote in super_reader:
vote.pop(0)
print(vote)
csvfile.close()

data.split(',')you already havevote