Hi everyone, im currently just trying around some different visualisation methods in Kaggle and I stumbled upon the violinplot in seaborn. Even though my data set only contains positive numbers (0-1900ish), the violinplot still starts at -100 and overshoots to 2000? Did i do something wrong, or is this intentional? Thanks in advance!
f, axs = plt.subplots(1, 2, figsize=(15,6))
plt.subplot(1, 2, 1)
sns.violinplot(data=visu_train_data, x='Side', y='Num', hue='Transported', split=True)
plt.xlabel('Side')
plt.ylabel('Num')
plt.title('Transported Status by Side and Num')
plt.grid(True)
plt.subplot(1, 2, 2)
sns.violinplot(data=visu_train_data, x='Deck', y='Num', hue='Transported', split=True)
plt.xlabel('Deck')
plt.ylabel('Num')
plt.title('Transported Status by Deck and Num')
plt.grid(True)
plt.show()
This was my code
As you can see, my Num-Variable has a min-value of 0 and max-value of 1900ish