In the preceding section, Period and Smoothies sales had one-to-one mapping. Now let's replace Period with the Month variable, where we have 30 observations (rows) for each month. We will again plot four plots using the Month and Smoothies sales variables. We will use the hue and style semantic variables and map Promotion and weekend to them.
The following is the code block to plot the required charts:
sns.relplot(x='Month', y='Smoothies', data=snacks_sales, kind='line')plt.title('line plot', size=20, color='g')sns.relplot(x='Month', y='Smoothies', hue='Promotion', data=snacks_sales, kind='line', err_style="bars", ci=68) # Standard Errorsplt.title('line plot with Error bar and hue', size=20, color='g')sns.relplot(x='Month', ...