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]

plt.figure(figsize=(6, 6))
sns.set_style('whitegrid')
plt.pie(traindf['Transported'].value_counts(), autopct='%1.1f%%', startangle=90)
plt.axis('equal')
plt.title('Transportado x Não transportado')
plt.show()