[Tutor] Required help in understanding following code
Shubhangi Patil
shubhangi.patil at icloud.com
Fri Nov 20 23:00:45 EST 2020
Hi,
I need guidance to understand following code
image_data = [{"data": typ,
"class": name.split('/')[0],
"filename": name.split('/')[1]}
for dataset, typ in zip([train_dataset, validation_dataset, test_dataset], ["train", "validation", "test"])
for name in dataset.filenames]
image_df = pd.DataFrame(image_data)
In above code instead of zip files, I would like to upload files from my computer folder. Please explain in details above code.
Thank you,
Shubhangi Patil
More information about the Tutor
mailing list