How can I turn list of strings to list of lists? : <p>I am new in programming and in stackoverflow. Sorry is this seems too basic.
I am trying to turn this:</p>

<p>I am trying to train a AI for predicting destination a car based on historical data.
It is inside a column and I must iterate over all of them.
I a single list it is working, but in a column, it is not for some reason.</p>

<p>I am trying this on windows 10 in anaconda , jupyter notebook </p>

<p>I am trying to turn this:</p>

<pre><code>lst = ['55.7492,12.5405', '55.7492,12.5405', '55.7492,12.5406', '55.7492,12.5406']
</code></pre>

<p>into this </p>

<pre><code>lst = [[55.7492,12.5405], [55.7492,12.5405], [55.7492,12.5406], [55.7492,12.5406]]
</code></pre>

<p>I have a column with a lot of those in a csv file.</p>

<p>I tryed to turn them like this:</p>

<pre><code>
[[x] for x in lst]

[['55.7492,12.5405'],
 ['55.7492,12.5405'],
 ['55.7492,12.5406'],
 ['55.7492,12.5406']]
</code></pre>

<p>So its working find outside of the csv but when I try to do it for every box in the colomn:</p>

<pre><code>for stuff in data['column']:
    [[x] for x in stuff]

for stuff in data_train['locations']:
    [map(int,x.split()) for x in stuff]
</code></pre>

<p>Nothing changes in the column .</p>
