Created
November 16, 2021 13:21
-
-
Save overtunned/09acde7b3dd2528983acfc6bf0cf1a9a to your computer and use it in GitHub Desktop.
Unzip files in colab
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
| import zipfile | |
| directory_to_extract_to = '/content/data' | |
| path_to_zip_file = '/content/file.zip' | |
| with zipfile.ZipFile(path_to_zip_file, 'r') as zip_ref: | |
| zip_ref.extractall(directory_to_extract_to) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment