Created
April 13, 2023 12:48
-
-
Save ruslangrimov/e06dde04ec6a88449cd21623b37dccdd to your computer and use it in GitHub Desktop.
Multiprocessing pool
This file contains hidden or 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 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