These two approaches yield different results in python 3.7.3:
res = urllib.request.urlopen(url, timeout=timeout)
content = res.read().decode('utf-8')
reader = csv.reader(StringIO(content))
lines = list(reader)
And
res = urllib.request.urlopen(url, timeout=timeout)
content = res.read().decode('utf-8')
reader = csv.reader(content)
lines = list(reader)
The former gives me what I want, a list of the rows from the CSV, the latter gives me a list containing lists of length 1 of single characters only (each character in the text is its own list), so:
Year,PID
2019,1
2018,2
And
Y
e
a
r,
P
i
d
(etc)
What's the difference?