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

import seaborn as sns

path = '/kaggle/input/data/'
file = path + 'BBox_List_2017.csv'
Bbox = pd.read_csv(file)
Bbox = Bbox.drop(columns=['Unnamed: 6', 'Unnamed: 7', 'Unnamed: 8'])
Bbox

Bbox.rename(columns={'Finding Label': 'Diagnosis'}, inplace=True)

chart = sns.countplot(x='Diagnosis', data=Bbox)
labels = chart.get_xticklabels()
chart.set_xticklabels(labels, rotation=45, horizontalalignment='right')