Created
September 11, 2017 17:57
-
-
Save mateisuica/5645ec4e437487f2ffbe7676c269727d to your computer and use it in GitHub Desktop.
Open a CSV file in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
sites = [] | |
with open('data.csv', 'rt') as csvfile: | |
spamreader = csv.reader(csvfile) | |
for row in spamreader: | |
sites.append(row) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment