Converting a list of lists into a multi-dimensional list in python
<p>I have manipulated a dataset into looking something like this:</p>

<pre><code># data_dict = { 'epoch':[[int(n), int(m), int(c + cs), int(s + ss)], ...], ... }
</code></pre>

<p>where every key (<code>'epoch'</code>) is associated with a list of lists that look something like this:</p>

<pre><code># [1, 0, (c + cs)_10, (s + ss)_10]
# [2, 0, (c + cs)_20, (s + ss)_20]
# [3, 0, ...]
# [4, 0, ...]
# [5, 0, ...]
# [1, 1, ...]
# [1, 2, ...]
# [1, 3, ...]
# [1, 4, ...]
# [1, 5, ...]
#    .
#    .
#    .
# [5, 5, (c + cs)_55, (s + ss)_55]
</code></pre>

<p>What I want is to be able to access any value of <code>(c + cs)_mn</code> given an <code>'epoch'</code> and values for <code>m</code> and <code>n</code>.</p>

<p>My initial thought is to somehow convert each list of lists into a multidimensional list, so I would be able to see the values I want by calling <code>data_dict['epoch'][m][n]</code>. Is it possible to do this?</p>

<p>Going further, is it even feasible to do this? The raw data is FORTRAN-formatted, but I know nothing about FORTRAN. As a result, I have taken this (admittedly convoluted) approach to converting the data into something easily readable.</p>

<p>For reference, the data I am looking at can be found <a href="http://puu.sh/nzgfy/c7639d998a.txt" rel="nofollow">here</a>.</p>