<div dir="ltr">The two lists are of different sizes.<br><div class="gmail_extra"><br></div><div class="gmail_extra">Had to count twice to catch that.<br><br>Ben Root<br></div><div class="gmail_extra"><br><div class="gmail_quote">
On Mon, Sep 9, 2013 at 9:46 AM, Chad Kidder <span dir="ltr"><<a href="mailto:cckidder@gmail.com" target="_blank">cckidder@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>I'm trying to enter a 2-D array and np.array() is returning a 1-D array of lists. I'm using Python (x,y) on Windows 7 with numpy 1.7.1. Here's the code that is giving me issues.<br><br>>>> f1 = [[15.207, 15.266, 15.181, 15.189, 15.215, 15.198], [-45, -57, -62, -70, -72, -73.5, -77]]<br>
>>> f1a = np.array(f1)<br>>>> f1a<br>array([[15.207, 15.266, 15.181, 15.189, 15.215, 15.198],<br> [-45, -57, -62, -70, -72, -73.5, -77]], dtype=object)<br><br></div>What am I missing?<br></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></div></div>