This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import concurrent.futures | |
from tqdm import tqdm | |
def threadPoolCall(func, task_args, max_workers = 8, raise_exception=True, log_errors=True, show_progress=True, description=None): | |
""" Distributes out a task between a pool of worker threads and collects | |
the results. The task is a python function, and the arguments to the function | |
are specified in an array of tuple arguments, each element representing a | |
task. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from IPython.core import display as ICD | |
from IPython.display import HTML | |
from PIL import Image | |
from io import BytesIO | |
from IPython.display import HTML | |
import pandas as pd | |
import base64 | |
### |