In [1]:
import seaborn as sns
import matplotlib.pyplot as plt

#sns.set(style="whitegrid", palette="pastel")
sns.set(style="whitegrid", palette="pastel", color_codes=True)

%matplotlib inline

In [ ]:
seaborn.violinplot(x=None, y=None, hue=None, data=None, order=None,
                    hue_order=None, bw='scott', cut=2, scale='area',
                    scale_hue=True, gridsize=100, width=0.8, inner='box',
                    split=False, orient=None, linewidth=None, color=None,
                    palette=None, saturation=0.75, ax=None, **kwargs)

In [3]:
# Load the example tips dataset
tips = sns.load_dataset("tips")

print tips
#print tips.total_bill

# Draw a nested violinplot and split the violins for easier comparison
sns.violinplot(x="day", y="total_bill", hue="sex", data=tips, split=True,
               inner="quart", palette={"Male": "g", "Female": "y"})

sns.despine(left=True)

plt.ylabel('Total bill')
plt.xlabel('Day')
plt.show()


<class 'pandas.core.frame.DataFrame'>
Int64Index: 244 entries, 0 to 243
Data columns (total 7 columns):
total_bill    244  non-null values
tip           244  non-null values
sex           244  non-null values
smoker        244  non-null values
day           244  non-null values
time          244  non-null values
size          244  non-null values
dtypes: float64(2), int64(1), object(4)