Unanswered
Hi There,
I Am Intending To Work More Often With The Datasets, But Not Sure If There Is A Way To Retrieve Specific Files From A Uploaded Dataset. I Saw I Can Retrieve Chunks Of Data, But Not Sure How That Would Work With A Dataset Of Parquet Files. If I H
Apparently found out a solution:dataset_zip = dataset._task.artifacts['data'].get()
will return the path to the zip file containing all the files (that will be downloaded to the local machine)
after that:import zipfile zip_file = zipfile.ZipFile(d, 'r') files = zip_file.namelist()
retrieving the names of the files
unzip usingimport os os.system(f'unzip {dataset_zip}') # in this case to your script directory
and using the files
list one can them open them selectively
180 Views
0
Answers
2 years ago
one year ago