vivek_rawat
New Contributor III

Hey ajay,

You can follow this module to unzip your zip file.

To give your brief idea about this, it will unzip your file directly into your driver node storage.

So If your compressed data is inside DBFS then you first have to move that to drive node and then uncompress that using the following and again move that uncompressed data to DBFS.( dbutils.fs.cp for moving between driver and dbfs)

import subprocess
subprocess.Popen(f'unzip {file_name}.zip', shell=True)

View solution in original post