text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

data = pd.read_csv('../input/airline-passenger-satisfaction/airline_passenger_satisfaction.csv')

data.isnull().sum()

data.duplicated().sum()

data.columns

distplot_df=data.loc[:,['Age', 'Flight Distance',
       'Departure Delay', 'Arrival Delay', 'Departure and Arrival Time Convenience', 'Ease of Online Booking',
       'Check-in Service','Online Boarding','Gate Location','On-board Service']]

fig = plt.figure(figsize=(15, 20))
for i, column in enumerate(distplot_df.columns, 1):
    f=plt.subplot(5,2,i)
    sns.distplot(distplot_df[column], color="red",fit_kws={"color":"darkgreen"});

distplot_df=data.loc[:,['Gate Location',
       'On-board Service', 'Seat Comfort', 'Leg Room Service', 'Cleanliness',
       'Food and Drink', 'In-flight Service', 'In-flight Wifi Service',
       'In-flight Entertainment', 'Baggage Handling',]]

fig = plt.figure(figsize=(15, 20))
for i, column in enumerate(distplot_df.columns, 1):
    f=plt.subplot(5,2,i)
    sns.distplot(distplot_df[column], color="blue",fit_kws={"color":"darkred"});

cols = 5
rows = 1
countplot_df=data.loc[:,['Customer Type', 'Type of Travel','Class','Satisfaction']]

fig = plt.figure(figsize= (18,7))
all_cats = data.select_dtypes(include='object')
for i, col in enumerate(countplot_df,1):
    ax=fig.add_subplot(rows, cols, i+1)    
    sns.countplot(x=data[col], data=data,ax=ax,palette = "Set1") 
fig.tight_layout()  
plt.show()

data.isnull().sum()

sns.stripplot(y=data['Age'], x=data['Satisfaction'], palette='Set2', alpha=0.1)