1. Learn
  2. /
  3. Courses
  4. /
  5. Analyzing Marketing Campaigns with pandas

Exercise

Marketing channels across age groups

Some marketing stakeholders want to know if their marketing channels are reaching all users equally or if some marketing channels are serving specific age demographics.

Within a marketing team, it is common to get requests that require quick analysis and visualization. The better you are at visualizing the results, the more likely that you will effectively communicate your findings to your stakeholders.

In this exercise, you will create a grouped bar chart showing how many people each marketing channel reached by age group.

Instructions

100 XP
  • Unstack channel_age with level = 1 and transform the result into a DataFrame.
  • Plot channel_age as a grouped bar chart.
  • Add a legend in the upper right and set the labels equal to channel_age_df.columns.values.