<div dir="ltr"><a class="" href="http://github.com/numpy/numpy/blob/v1.8.1/numpy/core/fromnumeric.py#L1072" style="color:rgb(0,136,204);text-decoration:none;font-family:'Open Sans',sans-serif;font-size:13px;font-weight:bold;line-height:19px"><span class="" style="float:right"><br>
[source]</span></a><a class="" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.squeeze.html#numpy.squeeze" title="Permalink to this definition" style="color:rgb(0,85,128);outline:0px;font-family:'Open Sans',sans-serif;font-size:13px;font-weight:bold;line-height:19px"></a><div>
<div class="gmail_extra">2014-08-27 16:08 GMT+01:00 phinn stuart <span dir="ltr"><<a href="mailto:dphinnstuart@gmail.com" target="_blank">dphinnstuart@gmail.com</a>></span>:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">Hi everyone, how can I convert (1L, 480L, 1440L) shaped numpy array into (480L, 1440L)?</div></blockquote><div><br></div><div style>If 'a' is your array then 'a.squeeze()' or 'a.squeeze(axis=0)' will do the job (see the docs at [1]). You can also say a.reshape(480, 1440) but obviously this is only useful if you know the exact dimensions of your array.</div>
<div style><br></div><div style>Cheers,</div><div style>Max</div><div style><br></div><div style>[1] <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.squeeze.html">http://docs.scipy.org/doc/numpy/reference/generated/numpy.squeeze.html</a></div>
</div><br></div></div></div>