Skip to content

Instantly share code, notes, and snippets.

@Nicolas-Vandeput
Created July 5, 2021 11:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nicolas-Vandeput/9b133159b9ec57ac73ac7893f9d57a7e to your computer and use it in GitHub Desktop.
Save Nicolas-Vandeput/9b133159b9ec57ac73ac7893f9d57a7e to your computer and use it in GitHub Desktop.
start = time.time()
def loop(file_number):
return pd.read_excel(f"Dummy {file_number}.xlsx")
df = Parallel(n_jobs=-1, verbose=10)(delayed(loop)(file_number) for file_number in range(10))
df = pd.concat(df, ignore_index=True)
end = time.time()
print("Excel//:", end - start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment