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

import pandas as pd

import seaborn as sns

traindf = pd.read_csv('/kaggle/input/spaceship-titanic/train.csv')
testdf = pd.read_csv('/kaggle/input/spaceship-titanic/test.csv')
data_cleaner = [traindf, testdf]

sns.set_style('whitegrid')
plt.axis('equal')

plt.figure(figsize=(10, 4))
sns.histplot(data=traindf, x='Age', hue='Transported', binwidth=1, kde=True)
plt.title('Distribuição idade')
plt.xlabel('Idade (anos)')
plt.show()