Код: Выделить всё
693.366,692.038,690.964,690.964,689.796
687.634,686.228,685.072,685.072,683.856
Код: Выделить всё
import csv
def read_dataset(file):
rows = []
with open(file, 'r') as csvfile:
csvreader = csv.reader(csvfile, delimiter=',')
for row in csvreader:
rows.append(row)
return rows
rows = read_dataset('stackoverflow_data.csv')
print(rows)
Код: Выделить всё
[['693.366', '692.038', '690.964', '690.964', '689.796'], ['687.634', '686.228', '685.072', '685.072', '683.856']]
Подробнее здесь: https://stackoverflow.com/questions/674 ... eading-csv
Мобильная версия