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

import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

df = pd.read_csv('../input/spaceship-titanic/train.csv')

df.pivot_table(index='CryoSleep', columns='Transported', aggfunc={'Transported': 'count'})

df_count = df[['Age']].apply(pd.value_counts)
plt.xticks(rotation=85)

healthy = df[df['Age'] <= 80]
age_s = sns.catplot(x='Age', kind='count', hue='Transported', height=20, aspect=11.7 / 8.27, data=healthy)
plt.legend(title_fontsize='400')
plt.show()