Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fast Food Nutrition

Public visualization

Viewing a saved revision (read-only)

b02ffa32fd1742e892de4ab07ed136b8

Fast Food Nutrition

0 stars0🌍 Public
Ppbruss@bu.edu
Last edited Sep 18, 2024
Created on Aug 31, 2024

This example displays the first row of a fast food nutrition dataset in raw JSON format, revealing attributes like calories, fat, sodium, and protein for items from McDonald’s and other chains. The code uses the `data.csv` import to load the dataset, then logs the keys and converts all quantitative attributes to numbers via a loop. The main function renders the parsed data as a formatted `<pre>` element, offering a static preview of the dataset’s structure.

AI-generated description

Overview

This dataset contains Nutritional values, including Calories and Micro-nutrients from six of the largest and most popular fast food restaurants: McDonald's, Burger King, Wendy's, Kentucky Fried Chicken (KFC), Taco Bell and Pizza Hut

Attributes:

  • Calories
  • Calories from Fat
  • Total Fat
  • Saturated Fat
  • Trans Fat
  • Cholesterol
  • Sodium
  • Carbs
  • Fiber
  • Sugars
  • Protein
  • Weight Watchers Points (where available)

Data & Dataset source:

https://www.kaggle.com/datasets/joebeachcapital/fast-food/data