Jak otworzyć plik CSV w Python
import csv
with open('example.csv') as csvfile:
readCSV = csv.reader(csvfile, delimiter=',')
Black Backed Magpie
import csv
with open('example.csv') as csvfile:
readCSV = csv.reader(csvfile, delimiter=',')
#import necessary modules
import csv
with open('X:\data.csv','rt')as f:
data = csv.reader(f)
for row in data:
print(row)
import csv
mycsv = csv.reader(open(myfilepath))
for row in mycsv:
text = row[1]
import itertools
# ...
with open(filename, 'rb') as f:
row = next(itertools.islice(csv.reader(f), row_number, row_number+1))
print row[column_number]