lambda - Vectorize Loop with nested lists in Python -


looking vectorizing loop in python:

for in range(len(listone)):          listtwo.append(listthree[listfour[a]]) 

i want test potential performance gains not having call append via loop. if not vectorization, perhaps lambda expression might suffice? thoughts or assistance immensely helpful! thank time!

there's nothing wrong loop, change comprehension if want avoid append():

listtwo = [listthree[listfour[a]] in range(len(listone))] 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -