import pandas as pd import numpy as np images = np.array(images) label = np.array(label) dataset = pd.DataFrame({'label': label, 'images': list(images)}, columns=['label', 'images'])