COM6018 Data Science with Python
Reading with csv.reader
The code on the previous slide will return a list of lists
[
['id', 'turbines', 'height', 'power'],
['WF1355', '13', '53', '19500.0'],
['WF1364', '3', '60', '8250.0'],
['WF1356', '12', '60', '24000.0'],
['WF1357', '36', '60', '72000.0']
]
This can be difficult to work with, as the data is not in a convenient format.
There is a better approach...