I have a dataframe like this in which I created barplot by seaborn
sns.barplot(x='year', y='counts', data=df, color='red', alpha=df_alpha.alpha)
df.head()
year counts alpha
0 2014 16908 1.000000
1 2015 14977 0.894269
2 2016 13626 0.820296
3 2013 12041 0.733510
4 2017 10980 0.675415
How can I set df's alpha values as corresponding alpha's values? I created alpha values column by MinMaxScaler and scaled the counts between (0.1,1) Therefore least count bar would have 0.1 opacity and viceversa.
