{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import os\nfrom tqdm import tqdm\nfrom zipfile import ZipFile","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"for first_folder in tqdm(sorted(os.listdir(\"../input/rsna-str-pulmonary-embolism-detection/train\"))[2100:2350]):\n    path_name = \"../input/rsna-str-pulmonary-embolism-detection/train/{}\".format(first_folder)\n    target_name = \"{}.tar.gz\".format(first_folder)\n    !tar -zcf $target_name $path_name","metadata":{"trusted":true},"execution_count":null,"outputs":[]}]}