Price per calorie of McDonald's menu items

Question

Given the following datasets, containing both price and calorie information for McDonald's food items:

Write code to merge the two datasets, calculate the price per calorie of food, and stack rank the foods from the 'best value' (most calories per dollar*) to 'worst value' (least calories per dollar*).

*There are of course nuances in nutritional benefits, protein, etc, but we're simplifying here for the purposes of these definitions and assuming someone wants to optimize purely for cost of calories.

Solution

Access restricted

Subscribe to premium account to see the solution.

Get premium now