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

import seaborn as sns

train = pd.read_csv('/kaggle/input/airline-passenger-satisfaction/train.csv')
test = pd.read_csv('/kaggle/input/airline-passenger-satisfaction/test.csv')

train.shape

train.isnull().sum()

train.dropna(inplace=True)

train.shape

travel_dum = pd.get_dummies(train[['Type of Travel']], drop_first=True)
class_dum = pd.get_dummies(train[['Class']], drop_first=True)
train = pd.concat([train, travel_dum, class_dum], axis=1)

train.drop(['Type of Travel', 'Class'], axis=1, inplace=True)

sns.countplot(x='Online boarding', hue='satisfaction', data=train, color='green')