Python csv

From wikinotes
Revision as of 00:41, 3 April 2022 by Will (talk | contribs) (Created page with " = Usage = <blockquote> read <syntaxhighlight lang="python"> import csv with open("file.csv", "r") as fd: for row in csv.reader(fd): print(row) </syntaxhighlight>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

read

import csv

with open("file.csv", "r") as fd:
    for row in csv.reader(fd):
        print(row)