<div class="gmail_quote">I'm trying to understand what you want to do, but I'm afraid it's still not clear, so I'm sorry if that reply doesn't help either.<br><br>It looks to me as if you first want to convert your list of lists into a list of arrays, then iterate through this list of arrays.<br>
If that's it, then you can just do:<br><br>def p(option_lists):<br>    list_of_arrays = map(numpy.array, option_lists)<br>    for my_array in list_of_arrays:<br>        ... # Do some operation on array 'my_array'<br>
<br>-=- Olivier<br><br>2011/9/20 DIPO ELEGBEDE <span dir="ltr"><<a href="mailto:dipo.elegbede@gmail.com">dipo.elegbede@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I think that should sort it.<div><br></div><div><div>def p(option_lists):</div><div>    for option_list in option_lists:</div><div>        array = numpy.array(option_list)</div><div>        for i in array: print i</div><div>

<br></div><div>the option_lists here is the list of lists</div><div>looping through it and then converting it into a numpy array is quiet easy.</div><div><br></div><div>If I try to loop through the array as you adviced, it prints out the whole items in the array.</div>

<div><br></div><div>You could also try that out.</div><div><br></div><div>What I am trying to achieve however is to loop through the 12 arrays and get them one after the other, doing something like:</div><div class="im">
<div><br></div><div>
for my_array in list_of_arrays:</div></div><div>  print my_array[0]</div><div><br></div><div><br></div><div>Hope this is clear enough.</div><div>Thanks for your patience.</div><div><div><div></div><div class="h5"><br><br>
<div class="gmail_quote">On 20 September 2011 17:11, Olivier Delalleau <span dir="ltr"><<a href="mailto:shish@keba.be" target="_blank">shish@keba.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you please provide your current code, even if incomplete / not working? It's hard to tell what's wrong without looking at the code.<br>

<br>-=- Olivier<br><br><div class="gmail_quote"><div>2011/9/20  <span dir="ltr"><<a href="mailto:dipo.elegbede@gmail.com" target="_blank">dipo.elegbede@gmail.com</a>></span><br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Olivier, the code you sent did so much magic and I'm definitely using that.<div><div></div><div><br>

What baffles me is that looping through the 12 arrays seem impossible.<br>
I have tried what you just sent but it won't just work.<br>
You could confirm this.<br>
<div>Sent from my BlackBerry wireless device from MTN<br>
<br>
-----Original Message-----<br>
</div><div>From: Olivier Delalleau <<a href="mailto:shish@keba.be" target="_blank">shish@keba.be</a>><br>
</div><div>Sender: <a href="mailto:numpy-discussion-bounces@scipy.org" target="_blank">numpy-discussion-bounces@scipy.org</a><br>
</div><div>Date: Tue, 20 Sep 2011 12:00:51<br>
To: Discussion of Numerical Python<<a href="mailto:numpy-discussion@scipy.org" target="_blank">numpy-discussion@scipy.org</a>><br>
Reply-To: Discussion of Numerical Python <<a href="mailto:numpy-discussion@scipy.org" target="_blank">numpy-discussion@scipy.org</a>><br>
Subject: Re: [Numpy-discussion] Dealing with arrays<br>
<br>
</div><div><div></div><div>_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org" target="_blank">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
<br>
<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org" target="_blank">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</div></div></div></div></blockquote></div><br>
<br>_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org" target="_blank">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div>-- <br><div class="im">Dipo Elegbede,OCA<br>08033299270,08077682428<br><br>
</div></div></div>
<br>_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
<br></blockquote></div><br>