โ03-22-2023 07:30 AM
โ03-22-2023 07:32 AM
As shown here on StackOverflow
import opendatasets as od
od.download("https://www.kaggle.com/competitions/tlvmc-parkinsons-freezing-gait-prediction/data","/dbfs/FileStore/mypath/")
The output, when running this, shows first the zip being downloaded. Once the download is complete, it automatically extracts or unzips the files.
Extracting archive /dbfs/FileStore/mypath/tlvmc-parkinsons-freezing-gait-prediction/tlvmc-parkinsons-freezing-gait-prediction.zip to /dbfs/FileStore/mypath/tlvmc-parkinsons-freezing-gait-prediction
โ03-22-2023 07:32 AM
As shown here on StackOverflow
import opendatasets as od
od.download("https://www.kaggle.com/competitions/tlvmc-parkinsons-freezing-gait-prediction/data","/dbfs/FileStore/mypath/")
The output, when running this, shows first the zip being downloaded. Once the download is complete, it automatically extracts or unzips the files.
Extracting archive /dbfs/FileStore/mypath/tlvmc-parkinsons-freezing-gait-prediction/tlvmc-parkinsons-freezing-gait-prediction.zip to /dbfs/FileStore/mypath/tlvmc-parkinsons-freezing-gait-prediction
โ03-22-2023 08:22 AM
Hi @Stephanie Riveraโ. In the Databricks notebook, you can handle this with either Python, Scala or bash.
I have not tried it but below should work as this command works in native shell.
%sh curl some_url --output myfile.zip
%sh unzip myfile.zip -d "some directory"
โ03-22-2023 09:14 AM
@Stephanie Riveraโ please download u r kaggle file and unzip, if it is less than 100mb, you can follow below steps to directly to upload https://docs.databricks.com/ingestion/add-data/upload-data.html else please take below example and replace u r zip url and target
%sh curl https://resources.lendingclub.com/LoanStats3a.csv.zip --output /tmp/LoanStats3a.csv.zip
unzip /tmp/LoanStats3a.csv.zip
โ03-22-2023 10:43 PM
Hi, You can refer to https://docs.databricks.com/files/unzip-files.html. You can curl the file you want and then it can be unzipped as mentioned in the doc.
Please let us know if this helps.
Also, please tag @Debayan with your next update which will notify me.
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group