So, I'm still learning Python, and now I'm learning to read csv files. The lesson I just watched tells me that using
csv.reader(filename)
returns a list.
So, I wrote the following code:
import csv
my_file = open(file_name.csv, mode='r')
parsed_data = csv.reader(my_file)
print(parsed_data)
and what he prints,
<_csv.reader object at 0x0000000002838118>
If what it outputs is a list, should I not get a list, i.e. something like that?
[value1, value2, value3]
source
share