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

import numpy as np
import pandas as pd
pd.set_option('display.max_colwidth', None)
import matplotlib.pyplot as plt
from glob import glob
import random
import matplotlib.mlab as mlab
from scipy.interpolate import interp1d

training_labels_path = '../input/g2net-gravitational-wave-detection/training_labels.csv'
training_labels = pd.read_csv(training_labels_path)

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

ids = [path.split('/')[-1].split('.')[0] for path in training_paths]
paths_df = pd.DataFrame({'path': training_paths, 'id': ids})
train_data = pd.merge(left=training_labels, right=paths_df, on='id')

train_data.head(3)