Python transpose list (From Stack Excchange)
From https://stackoverflow.com/questions/23525451/how-do-i-transpose-a-list
##Transpose to new list
new_list=[]
old_list=(item1,item2,item3,item4)
new_list=map(list, zip(*old_list))
##List is the FUNCTION that creates the list.
##Transposed list in new_list
Comments
Post a Comment