text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

train_set = pd.read_csv('/kaggle/input/aviakompaniya/train_dataset.csv')
test_set = pd.read_csv('/kaggle/input/aviakompaniya/test_dataset.csv')
sample = pd.read_csv('/kaggle/input/aviakompaniya/sample_submission.csv')

df = train_set.dropna()

df_100 = df[df['Flight Distance'] > 100]

df_100.select_dtypes('object').columns

Gender = list(df_100.Gender) + list(df_100.Gender)
Customer_Type = list(df_100['Customer Type']) + list(df_100['Customer Type'])
Type_of_Travel = list(df_100['Type of Travel']) + list(df_100['Type of Travel'])
Classes = list(df_100['Class']) + list(df_100['Class'])

satisfaction_rate = df_100['satisfaction'].value_counts() / len(df_100) * 100
plt.figure(figsize=(5, 5))
plt.pie(satisfaction_rate, labels=['Qolgan', 'Ketgan'])
plt.show()