text_plain_output_1.png image_output_1.png
import pandas as pd

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

data.count()

data['AgeBin'].value_counts().sort_index().plot(kind='bar', title='Passenger by Age Groups')