application_vnd.jupyter.stderr_output_1.png
import pandas as pd

import seaborn as sns

airline_data = pd.read_csv('../input/airline-passenger-satisfaction/airline_passenger_satisfaction.csv')
data_dic = pd.read_csv('../input/airline-passenger-satisfaction/data_dictionary.csv')

airline_data.shape

airline_data.isnull().sum()

airline_data.duplicated().sum()

des = airline_data.describe()
d = des.iloc[[1,5],:]
d.style.background_gradient(cmap='viridis')

# YELLOW represent the MAX.

airline_data.nunique()

airline_data.columns

airline_data.isnull().sum()

df_airline = pd.DataFrame({'Departure Delay': airline_data['Departure Delay'], 'Arrival Delay': airline_data['Arrival Delay']})
ax = df_airline.plot.kde()

for i, row in airline_data.iterrows():
    value = row['Arrival Delay']
    if pd.isnull(value):
        airline_data.loc[:, 'Arrival Delay'][i] = airline_data.loc[:, 'Departure Delay'][i]

airline_data.isnull().sum()

airline_data.info()