text_plain_output_1.png
from pathlib import Path

import os

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

input_path = Path('../input')
train_path = input_path / 'train'
test_path = input_path / 'test'

cameras = os.listdir(train_path)
train_images = []
for camera in cameras:
    for fname in sorted(os.listdir(train_path / camera)):
        train_images.append((camera, fname))
train = pd.DataFrame(train_images, columns=['camera', 'fname'])
train.sample(5)

random_images = train.sample(100)
random_images[:5]

train.sample(5)