Tutorial by Examples: barplot

Imagine you have a simple dataframe to plot on a barplot like: df = pd.DataFrame({'a':[1,2,3,4,5], 'b':[10,5,2,4,5]}) using seaborn: sns.barplot(df['a'], df['b'], palette='Blues_d') you can obtain something like: then you can also play with the palette option and colormap adding a gradien...
In barplot, factor-levels are placed on the x-axis and frequencies (or proportions) of various factor-levels are considered on the y-axis. For each factor-level one bar of uniform width with heights being proportional to factor level frequency (or proportion) is constructed. The barplot() function...

Page 1 of 1