How can I transfer a compiled tuple(rawly taken from Sql) in to a array, series, or a dataframe?
<ol>
<li><p>What I have is like this:</p>

<pre><code>(('3177000000000053', '8018000000000498', datetime.datetime(2016, 9, 29, 21, 36, 42)), 
 ('3177000000000035', '8018000000000498', datetime.datetime(2016, 9, 29, 21, 37, 6 )))
</code></pre></li>
</ol>

<p>It is exactly the way it looks in mysql database.</p>

<ol start="2">
<li><p>What I want is like this:</p>

<pre><code>[[1,2,3],
[4,5,6]]
</code></pre></li>
</ol>

<p>It's okay to have a series, dataframe, array, list.etc. I just want it to be managable for further analysing process.
I've tried several ways to deal with this such as dataframe(),list(),even pandas.replace(and it gives me a tuple-cant-be-replaced error).
I'm new to python, thanks for your answers!:)))))))))</p>

<p>In case you have tuple of tuples you may try the following list comprehension</p>

<pre><code>import datetime

input_tuple = (('3177000000000053', '8018000000000498', datetime.datetime(2016, 9, 29, 21, 36, 42)),
 ('3177000000000035', '8018000000000498', datetime.datetime(2016, 9, 29, 21, 37, 6 )))

output_list = [[i for i in j] for j in input_tuple]

print(output_list)
</code></pre>

python mysql