text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

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

df.columns

df.shape

df.isnull().sum()

df.isnull().sum()

df = df.drop(df.loc[df['Flight Distance'] > 4200].index)

df.isnull().sum()

df = df.drop(df.loc[df['Departure Delay'] > 800].index)

df = df.drop(df.loc[df['Arrival Delay'] > 700].index)

df.Satisfaction.value_counts()

df.Gender.value_counts()

df['Class'].value_counts()