Read in the first column of a CSV in Python
<p>I have a CSV (mylist.csv) with 2 columns that look similar to this:</p>
<pre class="lang-none prettyprint-override"><code>jfj840398jgg     item-2f
hd883hb2kjsd     item-9k
jie9hgtrbu43     item-12
fjoi439jgnso     item-3i
</code></pre>
<p>I need to read the first column into a variable so I just get:</p>
<pre class="lang-none prettyprint-override"><code>jfj840398jgg
hd883hb2kjsd
jie9hgtrbu43
fjoi439jgnso
</code></pre>
<p>I tried the following, but it is only giving me the first letter of each column:</p>
<pre><code>import csv
list2 = []
with open(&quot;mylist.csv&quot;) as f:
    for row in f:
        list2.append(row[0])
</code></pre>
<p>So the results of the above code are giving me <code>list2</code> as:</p>
<pre><code>['j', 'h', 'j', 'f']
</code></pre>