Код: Выделить всё
import csv
with open("weather_data.csv") as data_file:
data = csv.reader(data_file)
temp = []
for i in data:
if i != "temp":
temp.append(int(i[1]))
print(data)
ValueError: неверный литерал для int() с основанием 10: 'temp'
Подробнее здесь: https://stackoverflow.com/questions/790 ... -it-should