Session Ready
Exercise

How much was spent on Senate races?

Control of the Senate was up for grabs in the 2018 midterm elections, and along with it President Trump's ability to shape the judicial branch of government. Both parties fought hard to control this chamber of Congress, so how did this translate to fundraising? A first step at understanding this issue is to visualize the distribution of funds received by Senate candidates.

Your task is to create a histogram of displaying the distribution of funds received by Senate candidates during the 2018 election cycle. When you're done, try to identify the race with the highest level of fundraising.

plotly has already been loaded for you.

Instructions
100 XP
  • Filter to extract only the Senate office races (designated by "S").
  • Create a histogram of receipts.
  • Add the title "Fundraising for 2018 Senate races" and title the x-axis "Total contributions received".