Session Ready
Exercise

Recommending books with support

A library wants to get members to read more and has decided to use market basket analysis to figure out how. They approach you to do the analysis and ask that you use the five most highly-rated books from the goodbooks-10k dataset, which was introduced in the video. You are given the data in one-hot encoded format in a pandas DataFrame called books.

Each column in the DataFrame corresponds to a book and has the value TRUE if the book is contained in a reader's library and is rated highly. To make things simpler, we'll work with shortened book names: Hunger, Potter, and Twilight.

Instructions
100 XP
  • Compute the support for {Hunger, Potter}.
  • Compute the support for {Hunger, Twilight}.
  • Compute the support for {Potter, Twilight}.