Can't convert a Python List to timeSeries
<p>I tried to resolve this problem for more than a day. I have this type of list:</p>

<pre><code>TempList[:5]
[(datetime.datetime(2015, 11, 25, 7, 29, 28, 337000),), (datetime.datetime(2015, 9, 8, 7, 44, 55, 53000),), (datetime.datetime(2015, 9, 10, 5, 44, 51, 867000),), (datetime.datetime(2015, 9, 10, 1, 42, 15, 740000),), (datetime.datetime(2015, 9, 2, 1, 7, 09, 687000),)]
</code></pre>

<p>I would like to converti it as a Pandas <a href="http://pandas.pydata.org/pandas-docs/stable/timeseries.html#time-series-date-functionality" rel="nofollow">Time Series</a>.
I found this useful <a href="http://pandas.pydata.org/pandas-docs/stable/timeseries.html#converting-to-timestamps" rel="nofollow">function: pd.to_datetime</a>. But when I try 
to convert it:</p>

<pre><code>Dates = pd.to_datetime(TempList)
</code></pre>

<p>I got This Error:</p>

<pre><code>Traceback (most recent call last):
  File "&lt;input&gt;", line 1, in &lt;module&gt;
  File "/usr/local/lib/python2.7/dist-packages/pandas/util/decorators.py", line 91, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pandas/tseries/tools.py", line 291, in to_datetime
    unit=unit, infer_datetime_format=infer_datetime_format)
  File "/usr/local/lib/python2.7/dist-packages/pandas/tseries/tools.py", line 427, in _to_datetime
    return _convert_listlike(arg, box, format)
  File "/usr/local/lib/python2.7/dist-packages/pandas/tseries/tools.py", line 341, in _convert_listlike
    raise TypeError('arg must be a string, datetime, list, tuple, '
TypeError: arg must be a string, datetime, list, tuple, 1-d array, or Series
</code></pre>

<p>But TempList is a list! I can't understand how to resolve this. How can I convert my list? 
Thank you!</p>

<p>You have a list of tuples. Try converting that into a plain list, and then using <code>pd.to_datetime</code>.
Something like (I do not have python right now)</p>

<pre><code>tl2 = [ ti[0] for ti in TempList ]
Dates = pd.to_datetime(tl2)
</code></pre>

<p>PS1: What else do you have in <code>TempList</code>? (you only show the first 5 elements).</p>

<p>PS2: You might need to use the <code>format</code> argument, see <a href="http://stackoverflow.com/a/26763793/2707864">http://stackoverflow.com/a/26763793/2707864</a>.</p>

python pandas time-series