text_plain_output_1.png image_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

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

df = df.drop(['Unnamed: 0', 'id'], axis=1)

sns.set_style('whitegrid')
sns.set_context('paper', font_scale=1.4)

test = pd.read_csv('../input/airline-passenger-satisfaction/test.csv')
test = test.drop(['Unnamed: 0', 'id'], axis=1)

sns.set_style('whitegrid')
sns.set_context('paper', font_scale=1.4)

sns.set_style('whitegrid')
sns.set_context('paper', font_scale=1.5)

sns.set_style('whitegrid')
plt.figure(figsize=(10, 8))
sns.set_context('paper', font_scale=1.5)
sns.histplot(x='Age', data=df, hue='satisfaction').set_title('Customer satisfaction by Age')