Calorically dense foods
Suppose you are given the following dataframe containing food, weight, and calories. You'll notice the foods have varying weights associated with them:
Using Python (Pandas), can you sort the dataframe in descending order with the most calorically dense food (normalized for weight) at the top?
Click here to view this problem in an interactive Colab (Jupyter) notebook.
Subscribe to premium account to see the solution.Get premium now