How can I add a progress bar on Zip extracting in Python?

Viewed 702

I have a large dataset in Google Drive. I'm using Google Colab. I extracted the dataset in a cell of colab using python. But I have to wait till it finished. Is there any way to add a progress bar to this Code in down below? So that it shows the progress of extracting.

import zipfile
with zipfile.ZipFile('/content/drive/My Drive/Thesis/Dataset/dataset.zip','r') as zip_file:
  zip_file.extractall('df')
0 Answers
Related