Skip to main content
Premium project

Wrangling and Visualizing Musical Data

Wrangle and visualize musical data to find common chords and compare the styles of different artists.

Start Project
10 Tasks1,500 XP

Loved by learners at thousands of companies

Project Description

Apply data-wrangling and visualization tools from the tidyverse to musical data. Find the most common chords and chord progressions in a sample of pop/rock music from the 1950s-1990s, and compare the styles of different artists. This project assumes familiarity with standard TidyVerse tools for R, in particular the `tibble` data structure and the `dplyr` and `ggplot2` packages. No specific musical knowledge is required, though it may give you ideas for further exploration of the dataset after completing the project. This project uses a parsed and cleaned version of the [McGill Billboard Dataset](, version 2.0 (CC0 license).

Project Tasks

  1. 1
  2. 2
    The most common chords
  3. 3
    Visualizing the most common chords
  4. 4
    Chord "bigrams"
  5. 5
    Visualizing the most common chord progressions
  6. 6
    Finding the most common artists
  7. 7
    Tagging the corpus
  8. 8
    Comparing chords in piano-driven and guitar-driven songs
  9. 9
    Comparing chord bigrams in piano-driven and guitar-driven songs
  10. 10




Case Studies
Kris Shaffer Headshot

Kris Shaffer

Data scientist and instructional technology specialist

Kris Shaffer, Ph.D., is a data scientist and instructional technology specialist at the University of Mary Washington. He also does freelance work in web intelligence and analytics, and has an academic background in music theory and the digital humanities. You can find him on the web at
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA