Skip to content

Instantly share code, notes, and snippets.

@mutaku
Created March 14, 2012 02:30
Show Gist options
  • Select an option

  • Save mutaku/2033550 to your computer and use it in GitHub Desktop.

Select an option

Save mutaku/2033550 to your computer and use it in GitHub Desktop.
matrix transposition
from itertools import chain
[[y[i] for y in list(chain.from_iterable(x)) if y[i] and y[i] < 200] for i in range(0,len(x[0][0]))]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment