Difference makes the DIFFERENCE
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sns.set(color_codes = True)
pen = sns.load_dataset('penguins')
pen.head(2)
sns.violinplot( data=pen, x='body_mass_g', orient='v');
sns.violinplot(x='species', y='body_mass_g', data=pen)
pen.head(2)
sns.violinplot(x='species', y='bill_depth_mm', data=pen)
sns.violinplot(x='species', y='flipper_length_mm', data=pen)
pen.head(2)
sns.violinplot(x='species', y='flipper_length_mm', data = pen)
sns.violinplot(x='island', y='flipper_length_mm', data = pen)
sns.violinplot(x='sex', y='flipper_length_mm', data = pen)
sns.swarmplot(x='island', y='flipper_length_mm', data = pen)
sns.violinplot(x='island', y='flipper_length_mm', data = pen)
sns.swarmplot(x='island', y='flipper_length_mm', hue = 'sex', data = pen)
sns.swarmplot(x='island', y='flipper_length_mm', hue = 'species', data = pen)
d = sns.load_dataset('diamonds')
d.head(2)
sns.swarmplot(x='cut', y='price', data = d.sample(1000))
sns.swarmplot(x='cut', y='price', hue = 'color', data = d.sample(1000))