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)
df_count.plot(kind='bar', color='Orange', figsize=(12, 12))
plt.xticks(rotation=85)
plt.title('Most Common Ages')
plt.show()