text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

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

space_torr = train_df.corr()

plt.figure(figsize=(12, 8))
sns.set(font_scale=1.5)
colors = sns.color_palette('Paired')
explode = (0.05, 0.05)
plt.pie(train_df.Transported.value_counts().values, labels=train_df.Transported.value_counts().index, colors=colors, explode=explode, startangle=0, shadow=True, autopct='%.1f%%')
plt.title('Distribution de la variable cible', fontsize=18)