Upload data from csv to series in python
<p>I have a data in a column in a csv format and want to append it in series in python that it can be displayed like:</p>

<pre><code>series=[12,13,12,22,34,21]
</code></pre>

<p>How can it be done? Should I do it via read_csv and then somehow transform it to series or it is a another way?</p>

<p>Thanks!</p>

<p>Try <code>pandas.Series(data=None, index=None, dtype=None, name=None, copy=False, fastpath=False)</code> after reading your data as data frame with <code>read_csv</code>. Pandas <a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.html" rel="nofollow">documentation</a></p>

<p>Another possibility is to use <code>iloc</code> function, when you deal with  a row, not a column. See here: <a href="http://stackoverflow.com/questions/33246771/convert-pandas-data-frame-to-series">Convert pandas data frame to series</a></p>

python csv pandas series