Top-rated recipes tagged "reshape"http://code.activestate.com/recipes/tags/reshape/top/2012-11-02T04:01:06-07:00ActiveState Code Recipesreshape a sequence (Python)
2012-11-02T04:01:06-07:00Chris Smithhttp://code.activestate.com/recipes/users/2725752/http://code.activestate.com/recipes/578262-reshape-a-sequence/
<p style="color: grey">
Python
recipe 578262
by <a href="/recipes/users/2725752/">Chris Smith</a>
(<a href="/recipes/tags/group/">group</a>, <a href="/recipes/tags/reshape/">reshape</a>, <a href="/recipes/tags/sequence/">sequence</a>).
Revision 4.
</p>
<p>This function accepts a sequence and a template of how the sequence should be reshaped. </p>