On Sat, Mar 19, 2011 at 01:52, Ben Gamari <span dir="ltr"><<a href="mailto:bgamari.foss@gmail.com">bgamari.foss@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Fri, 18 Mar 2011 20:27:17 +0000, Rohaq <<a href="mailto:rohaq@dearinternet.com">rohaq@dearinternet.com</a>> wrote:<br>
> There could be a lot more than 2 other columns, Result3,Result4, etc.,<br>
> so I need to code it to be scalable; if this were acting like a normal<br>
> dict, I could write a loop that iterates over the keys, and loads the<br>
> results data into a new object, but I can't seem to find a function<br>
> that will return the keys so that I can do this.<br>
><br>
</div>You could also iterate over data.dtype.fields, which will behave much<br>
like dict.keys().<br>
<font color="#888888"><br>
- Ben<br>
</font></blockquote></div><br><div>Actually I just found last night I could iterate over data.dtype.names, and unlike fields, it seems to print them in the order of the columns from the CSV file :)</div><div><br></div><div>
Thanks for your help though!</div><div><br></div><div>-- </div><div>Rohaq</div>