はじめに
import csv with open('example.csv', 'r', encoding='utf-8_sig') as f: reader = csv.reader(f) next(reader) # ヘッダ行をスキップ for row in reader: print(row) # 行全体を表示 print(row[0]) # 先頭の列を表示
import csv with open('example.csv', 'r', encoding='utf-8_sig') as f: reader = csv.reader(f) next(reader) # ヘッダ行をスキップ for row in reader: print(row) # 行全体を表示 print(row[0]) # 先頭の列を表示