Here is my code:
order = sorted(subway_df.conds.unique())
g0 = sns.boxplot(subway_df.ENTRIESn_hourly, groupby = subway_df.conds, data=subway_df, palette = "Set2", order = order )
g0.set(yscale = 'symlog')
g0.set_xlabel('conds', fontdict={'fontsize' : 14})
g0.set_ylabel('ENTRIESn_hourly', fontdict={'fontsize' : 14})
fig.suptitle('Hourly entries at various weather conditions', fontdict={'fontsize' : 16})
and the following graph:
I would like to find a way to sort the appearance of boxes by mean or variance as opposed to alphabetical order. Thanks!
