What is the best way to read from a csv, but only one specific column, like title
?
ID | date| title |
-------------------
1| 2013| abc |
2| 2012| cde |
The column should then be stored in an array like this:
data = ["abc", "cde"]
This is what I have so far, with pandas:
data = pd.read_csv("data.csv", index_col=2)
I've looked into this thread. I still get an IndexError: list index out of range
.
EDIT:
It's not a table, it's comma seperated like this:
ID,date,title
1,2013,abc
2,2012,cde