Skip to content

Instantly share code, notes, and snippets.

@ruslangrimov
Created April 13, 2023 12:48
Show Gist options
  • Save ruslangrimov/e06dde04ec6a88449cd21623b37dccdd to your computer and use it in GitHub Desktop.
Save ruslangrimov/e06dde04ec6a88449cd21623b37dccdd to your computer and use it in GitHub Desktop.
Multiprocessing pool
from multiprocessing import Pool
with Pool(processes=10) as pool:
for _ in tqdm(pool.imap_unordered(parse_row, df.itertuples(name=None)), total=len(df)):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment