sns.set_style('whitegrid')
tips = sns.load_dataset('tips')
ax = sns.boxplot(x='day', y='total_bill', data=tips)
medians = tips.groupby(['day'])['total_bill'].median().values
median_labels = [str(np.round(s, 2)) for s in medians]
Labeling boxplot in seaborn with median value