image_output_1.png
import pandas as pd

meta_vir = pd.read_csv('../input/rsna-2022-spine-fracture-detection-metadata/meta_train_with_vertebrae.csv')

y = meta_vir.iloc[:3408, 9:]
y.shape

y['overall'] = y['C1'] + y['C2'] + y['C3'] + y['C4'] + y['C5'] + y['C6'] + y['C7']
y['z_total'] = y['overall'].apply(lambda x: x if x == 0 else 1)
y['z_total'].value_counts()