text_plain_output_1.png
from glob import glob

import pandas as pd

paths = glob('../input/g2net-gravitational-wave-detection/train/*/*/*/*')

ids = [path.split('/')[-1].split('.')[0] for path in paths]
path_df = pd.DataFrame({'path': paths, 'id': ids})
path_df
labels = pd.read_csv('../input/g2net-gravitational-wave-detection/training_labels.csv')

train_df = pd.merge(left=labels, right=path_df, on='id')
train_df.shape