In my method i have to return a list within a list. I would like to have a list comprehension, because of the performance since the list takes about 5 minutes to create.
Here is my implementation.
pip install progressbar2
from progressbar import progressbar new_list = [your_function(list_item) for list_item in progressbar(old_list)]`
You will see a progress bar while running the code block above.