I have the following DataFrame on a Jupyter notebook which plots using seaborn a barplot:
data = {\'day_index\': [0, 1, 2, 3, 4, 5, 6],
Here is the solution
ax = sns.barplot(data=df, \ x='day_index', \ y='avg_duration', \ hue='trips', \ dodge=False, \ palette=sns.color_palette("Reds_d", n_colors=7, desat=1))