text_plain_output_1.png
import pandas as pd

data = pd.read_csv('/kaggle/input/titanicdataset-traincsv/train.csv')
data

data.count()

alpha_color = 0.5

data['Pclass'].value_counts().sort_index().plot(kind='bar', alpha=alpha_color, title='Passengers Separated by Cabin Class')